file compression using opensource library

In this article I’m going to explain how to create the zip file using C#. As we know .net does not support the compression by default we need to use the third part open source or paid control this purpose.  In this article I’m going to review open source compressing and encryption software we could use in our .net application.

Compression system will be very handy invention especially for internet user. Using compression we could save the huge space. If we send the lesser sized data we could save the bandwidth and achieved the faster download speed. We could compress the files when we are sending the file over the internet using Email, FTP etc.  If you are sending the crucial financial data then it is better to encrypt with the password. These are all the extracted features of zip file or compression over the internet.

  1. DotNetZip( It is opensource library, DotNetZip is an easy-to-use, FAST, FREE class library and toolset for manipulating zip files or folders. Zip and Unzip is easy: with DotNetZip, .NET applications written in VB, C# – any .NET language – can easily create, read, extract, or update zip files. For Mono or MS .NET. it works on .net framework system, mobile devices. example to compress the string and download it as zip file.  Zip file will be password protected by password “Password1”.
  2. #zipLib ( #ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of #ziplib put it this way: “I’ve ported the zip library over to C# because I needed gzip/zip compression and I didn’t want to use libzip.dll or something like this. I want all in pure C#”. The library is released under the GPL hence I have not exposed this library much.

It would be nice if you like to share the library used in your application so far. It may help others.


Similar Topics:

We will send you more information on file compression using opensource library.
Enter your email address:
This entry was posted in .Net and tagged . Bookmark the permalink.

3 Responses to file compression using opensource library

  1. Jaime says:

    Please have a look to my minimalistic library: ZipStorer, at:
    The most remarkable feature is that it is just one class and can embedded into a project without using a separated DLL.

  2. priyanka says:

    I am not able to send a zip file as an attachment.That zip file contains lots many files. File has been zipped but not sent.

Leave a Reply

Your email address will not be published. Required fields are marked *