Posts: 337
Joined: Fri Oct 07, 2005 02:44 PM
Re: Save binary file from BLOB field with TmySQL
Posted: Tue Jan 12, 2010 04:04 PM
Hello Vilian,
You can convert the parts in a mime64 format and save this in a varchar field like this
local nhfile
local ctemp
...
...
 do while fread(nhfile,@ctemp,5000) > 0
   xxobj:field := cmimeenc(ctemp)
   ....
   ....
enddo
where xxobj is the form with you open the mysql database.
For read only replace cmimeenc with cmimedec.
This working in harbour.
Best Regards,
Lautaro Moreira
Osorno
Chile
PD : Sorry for my bad english

Hola,
Soy un Contador que por necesidad aprendio a programar y se quedo programando.