|
Post by Piotr on May 7, 2004 4:55:26 GMT -5
Hello,
How can I estimate a compress file size before compressing?
Greetings, Piotr
|
|
|
Post by Kevin on May 7, 2004 18:05:35 GMT -5
Unfortunately there is no way to do this. Different files, even if they start out the same size, will compress to very different sizes. There isn't any way to know or guess the resulting size until they have been zipped.
|
|
|
Post by Piotr on May 8, 2004 3:59:57 GMT -5
Hi,
I asked because for example somebody can compress many files on his hard disk and then (while compressing) it will apear there is not enough space on the disk.
Maybe a good solution is assuming that eg. compress will be at 30 % rate. What do you think of it?
Greetings, Piotr Murawski
|
|
|
Post by Kevin on May 8, 2004 8:03:15 GMT -5
VCLZip cannot do that, but you could probably do that if your application compresses the same types of files every time. For instance if your application is designed to compress database files and you see that your files always end up about 30% compression then your application could use that as a rule of thumb before zipping.
|
|
|
Post by Piotr on May 8, 2004 12:44:53 GMT -5
Hello,
I have an idea. Your component has a test function. Maybe there is any posibbility to do test compression.
Greetings, Piotr
|
|