Hi guys,
I have a question about BLOB fields. When I fill a blob field with the code below and then IMMEDIATE after the import asks it value it works fine.
VARIABLES:
Log = recorde with a blobfield
sTemp = string (1024)
// Set data into a BLOB field using OUTSTREAM
Log.SETRANGE(ID, 112);
Log.NEXT;
Log.XMLStream.CREATEOUTSTREAM(oOutStream);
oOutStream.WRITE('New content for the BLOB field');
Log.MODIFY;
// Reading out a BLOB field
Log.SETRANGE(ID, 112);
Log.NEXT;
Log.XMLStream.CREATEINSTREAM(oInStream);
oInStream.READTEXT(sTemp);
MESSAGE('Content of sTemp: ' + sTemp);
But when I then read out the value without reimporting it, it shows an empty string. It seems that the BLOB has disappeared.
Any idea what I 'm doing wrong here ?
Thanks in advance
Geert
0
Comments