Compressed and uncompressed data
Posted: Thu 08 Oct 2009 15:09
Hi,
I've a table containing a Image-Field. Some records are stored compressed (TMSQuery.CompressedBlobMode=cbServer) and others not (CompressedBlobMode=cbNone) according to the extensions of the files (.zip, .tif, .. are not compressed, .doc.rtf... are compressed). For backup-purposes I would like to write the contents of the image to files (read the table into a virtualtable and save the virtualtable to disk, creating more file). The restore will be done with TMSLoader-component. Now my question: can I read and write the contents of the image-field as it is stored in the table of the database, without decompressing or recompressing it? Would be like reading / writing it with a TADOQuery which doesn't know anything about SDAC-Compression? But I wouldn't like to create a ADOConnection/ADOQuery.
I hope my request is not to confused.
best regards.
Toni
I've a table containing a Image-Field. Some records are stored compressed (TMSQuery.CompressedBlobMode=cbServer) and others not (CompressedBlobMode=cbNone) according to the extensions of the files (.zip, .tif, .. are not compressed, .doc.rtf... are compressed). For backup-purposes I would like to write the contents of the image to files (read the table into a virtualtable and save the virtualtable to disk, creating more file). The restore will be done with TMSLoader-component. Now my question: can I read and write the contents of the image-field as it is stored in the table of the database, without decompressing or recompressing it? Would be like reading / writing it with a TADOQuery which doesn't know anything about SDAC-Compression? But I wouldn't like to create a ADOConnection/ADOQuery.
I hope my request is not to confused.
best regards.
Toni