Zip compression

  • Thread starter Thread starter jacques
  • Start date Start date
J

jacques

Hello,

Is there C# sample source code avaible
(FREE or inexpensive) that performs Zip
compression.

TIA,
Jacques
 
there are 2 free options I know of.
The SharpZipLib - mentioned below - works, but I believe is GPL ? which may
not work for you if you are an ISV and/or you worry about indeminification
issues. Also I seem to recall having issues using this within ASP.NET; the
SharpZipLib wanted to create a temporary file where the ASPNET user was not
permitted to do so. IIRC.

The other free option is to use the J# runtime. No such concerns here.
Check the article: Using the Zip Classes in the J# Class Libraries to
Compress Files and Data with C#
MSDN Magazine, June 2003
http://msdn.microsoft.com/msdnmag/issues/03/06/ZipCompression/


Also, you didn't ask but....ComponentOne offers a commercial (non free) zip
runtime.

-D
 
Hi Pieter,

Thank you for responding to my posting.
I did find the file that you suggested.

Thanks again,
Jacques
 
Dino Chiesa said:
there are 2 free options I know of.
The SharpZipLib - mentioned below - works, but I believe is GPL ? which may
not work for you if you are an ISV and/or you worry about indeminification
issues.

It's GPL with a couple of exceptions though. From the SharpZipLib front
page:

<quote>
License

The library is released under the GPL with the following exception:

Linking this library statically or dynamically with other modules is
making a combined work based on this library. Thus, the terms and
conditions of the GNU General Public License cover the whole
combination.

As a special exception, the copyright holders of this library give you
permission to link this library with independent modules to produce an
executable, regardless of the license terms of these independent
modules, and to copy and distribute the resulting executable under
terms of your choice, provided that you also meet, for each linked
independent module, the terms and conditions of the license of that
module. An independent module is a module which is not derived from or
based on this library. If you modify this library, you may extend this
exception to your version of the library, but you are not obligated to
do so. If you do not wish to do so, delete this exception statement
from your version.

Note The exception is changed to reflect the latest GNU Classpath
exception. Older versions of #ziplib did have another exception, but
the new one is clearer and it doesn't break compatibility with the old
one.

Bottom line In plain English this means you can use this library in
commercial closed-source applications.
</quote>
 
Back
Top