Get blob field data from database

Hey there, I’m trying to figure out how to get data from a MS SQL Server database blob field, below is how I’m doing, but I’m still working with varchar fields, field EMAILMENSAGEM I need to read it like blob;

err := db.QueryRow("SELECT TOP 1 * FROM LISTAEMAIL ORDER BY ID ASC").Scan(&ID, &EMAILDE_NOME, &EMAILDE_ENDERECO, &EMAILPARA, &EMAILREPLYTO, &EMAILASSUNTO, &EMAILMENSAGEM, &SMTPUSR, &SMTPSNH)

Any help will be appreciated. Tnx.

What do you mean by “read it like blob”?

What is the type of the EMAILMENSAGEM field on database?

What is the type of EMAILMENSAGEM in you Go code?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.