How to use TCompressedBlob

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Posts: 2
Joined: Fri 18 Sep 2009 10:29
Location: Wisconsin, USA

How to use TCompressedBlob

Post by pacomo » Fri 18 Sep 2009 10:31

Anybody has an example on how to use TCompressedBlob to read and write compressed data into a TBlobField?


Devart Team
Posts: 2885
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 18 Sep 2009 12:45

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.

Post Reply