Page 1 of 1

How to use TCompressedBlob

Posted: Fri 18 Sep 2009 10:31
by pacomo
Anybody has an example on how to use TCompressedBlob to read and write compressed data into a TBlobField?

Thanks,

Posted: Fri 18 Sep 2009 12:45
by Dimon
To read/write data from TCompressedBlob you can use the TCompressedBlob.Read, TCompressedBlob.Write, TCompressedBlob.AsString methods.
To get the Blob object for the field you should use the following code:

Code: Select all

Blob := MSQuery.GetBlob(Field);
You can find more detailed information about these methods in the SDAC help.