Usage of zip compression in my app

G

Guest

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?
 
J

Jon Skeet [C# MVP]

Chris said:
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:

http://www.icsharpcode.net/OpenSource/SharpZipLib/
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

| 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?

You better use www.icsharpcode.net/OpenSource/SharpZipLib/

It's a free (with code) library for handling zip files.
 
J

Jon Skeet [C# MVP]

Chris said:
Yes, it is free
But even for commercial use?

From the page linked in Ignacio's post:

"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.

Ask a Question

Top