
how to compress a file from within the code
Quote:
> i have a program that get data from database,i want to make a
backup every
> month and ,then i want to store this backup in a file this
file must be
> compressed,but i can't use winzip because i want it to run
with the program
> and not by user.
There are a number of zip libraries. Others can comment on
options, but here's the little bit I know:
1) Sax Zip Objects -- simple ActiveX library to basic zip
functions. I'm currently using this in a lightweight
application with no complaints. $100.
2) Xceed Zip -- more extensive zip library. I've not used
this, but I've scouted it as my upgrade path if I need more than
Sax. $350
3) DynaZip -- no experience with the kit.
4) VCLZip -- Delphi/C++ Builder based library. Worth
mentioning because you can get the library with source code, for
$100.
5) PKZip Command Line or WinZIP -- you can still use this type
of program to do your zipping, as long as it has a dialog-less
command line interface. Check licenses carefully, though--even
if the product only costs $50, more may be required to
redistribute it.
6) zlib -- public domain implementation of a deflate algorithm.
Not exactly zip, and it's a bit opaque to use, but the price is
right. $0.