Phillip Flores
2008-02-18 13:05:52 UTC
Hi,
I have an application that stores into a firebird database table a file
that the user selects. I am using a TClientDataset. The file's contents
are stored in a blob field. There is also an option to allow the user to
select the record and extract the contents of the blob field and write
it onto a file.
Why is it that the size of the extracted file does not match the size of
the original stored file? For example, I load a word document that is
about 203K is size. When I extract and save the field contents for this
file, the size is 45K. The manner of storing and retrieving does not
seem to fix it e.g. LoadFromFile/SaveToFile methods or using TBlobstream
and TFileStream.
Any ideas?
I have an application that stores into a firebird database table a file
that the user selects. I am using a TClientDataset. The file's contents
are stored in a blob field. There is also an option to allow the user to
select the record and extract the contents of the blob field and write
it onto a file.
Why is it that the size of the extracted file does not match the size of
the original stored file? For example, I load a word document that is
about 203K is size. When I extract and save the field contents for this
file, the size is 45K. The manner of storing and retrieving does not
seem to fix it e.g. LoadFromFile/SaveToFile methods or using TBlobstream
and TFileStream.
Any ideas?
--
Cheers,
Phillip Flores
"VeriTime - Helping you manage your time better."
http://www.pcfworks.com
Cheers,
Phillip Flores
"VeriTime - Helping you manage your time better."
http://www.pcfworks.com