Vou deixar aqui o exemplo do Przemek!
Código: Selecionar todos
Hi,
I suggest to not reinvent a wheel.
Blob and FPT memo fields in Harbour support Flex3 compatible types and
item conversions. Code example below.
best regards,
Przemek
#include "blob.ch"
request DBFBLOB
proc main()
local cFile, aData, aRead, nPointer
cFile := "myblob"
dbCreate( cFile, {}, "DBFBLOB", .t. )
aData := { date(), 123.45, .t., { "nested array", "item2" } }
nPointer := BLOBDirectPut( , aData )
? "wrriten data at:", hb_ntos( nPointer )
aRead := BLOBDirectGet( nPointer )
? hb_valToExp( aRead )
return
Saudações,
Itamar M. LIns Jr.
