My application generates a few text files. I want to use zip compression
(built in Windows XP) to compress these files in my application.
Is it possible?
My application generates a few text files. I want to use zip compression
(built in Windows XP) to compress these files in my application.
Is it possible?
I dare say with P/Invoke you *could* use the built-in compression, but
it would almost certainly be easier to use a managed library. .NET 2.0
contains some compression APIs, and SharpZipLib is a more fully
featured one which works on 1.1:
System.Compression supports stream compression (GZIP etc), but not the
zip format itself. #ZipLib is a popular 3rd party tool for plugging
this gap, with examples etc on the site. I have used this many times;
it is fast and fairly robust: http://www.icsharpcode.net/OpenSource/SharpZipLib/
| My application generates a few text files. I want to use zip compression
| (built in Windows XP) to compress these files in my application.
| Is it possible?
"Bottom line In plain English this means you can use this library in
commercial closed-source applications."
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.