Using ZLib unit to compress files vs using ZipForge
Posted
by user193655
on Stack Overflow
See other posts from Stack Overflow
or by user193655
Published on 2010-06-15T08:39:53Z
Indexed on
2010/06/15
8:42 UTC
Read the original article
Hit count: 284
There are many questions on zipping in Delphi, anyway this is not a duplicate.
I am using ZipForge for zip/unzip capability in my application.
Currently I use 2 features of ZipForge: 1) zip and unzip (!) 2) password protect the archives
Now I am removing the password from all the archives so I need only to zip and unzip files. I zip them just for minimizing bandwith when uploading/downloading files from the server. So my idea is to process all files once for unzipping them (with password) and rezipping them without password.
I have nothing against ZipForge, anyway it is an extra component, every time I upgrade to a newest Delphi version I have to wait for the new IDE support and moreover the more components the more problems during the installation. So since what I do is very simple I'd like to replace ZipForge with 2 simple functinos using the ZLib unit. I found (and tested) the functions here on Torry's.
What do you think of using Zlib unit? Do you see any potential problem that I would not have with ZipForge? Can you comment on speed?
© Stack Overflow or respective owner