Options

Problem with BLOB fields

GetteGette Member Posts: 19
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

Comments

  • Options
    ric123ric123 Member Posts: 8
    after get the record you must do a calcfield in the blob filed
  • Options
    GetteGette Member Posts: 19
    Thanx now it works !
Sign In or Register to comment.