EasyTable: Single-File Embedded Database,
a BDE replacement for Delphi and C++Builder
Introduction
One of the advanced features of EasyTable is ability to compress data in BLOB fields.
It may be useful when you need to store rich text files, bmp images or other large amounts of data in the table.
How it works
BLOB fields compression is completely transparent, so all that you need to do is to set the BlobCompression property to one of the following values:
clNone
|
there is no compression
|
required memory: about 64Kb
|
clFastest
|
fastest compression
|
required memory: about 64Kb
|
clDefault
|
normal compression
|
required memory: about 20Mb
|
clMax
|
maximal compression
|
required memory: about 50Mb
|
If you set BlobCompression property before creating a table, the value of this property will be stored in database file and used by default in all operations with BLOBs.
BlobCompression property value is retrieved from the table when opening table is performed.
If you want to change BlobCompression in existing table, you must perform Restructure table operation.
|