Compress and Decompress file or data using C# and VB.Net

B

bradbury9

El lunes, 25 de junio de 2012 12:26:51 UTC+2, Jayesh Sorathia escribió:
.Net framework provide the System.IO.Compression.GZipStream or System.IO.Compression.DeflateStream to compress or
decompress data.
Both GZipStream and DeflateStream classes allow you to use ZIP and Deflate compression algorithms to compress or decompress data.

Click here to view original article , Link : http://jayeshsorathia.blogspot.com/2012/06/c-tips-compress-and-decompress-file-or.html

You blog post is misleading, it says it is for ZIP formatted files but in fact System.IO.Compression.GZipStream doesnt create ZIP streams but GZIP streams. Perhaps you want to change it to avoid confusion.

To use ZIP format (not GZIP) it is common using SharpZipLib (not sure aboutthe name of the library)
 
J

Jayesh Sorathia

El lunes, 25 de junio de 2012 12:26:51 UTC+2, Jayesh Sorathia escribió:

You blog post is misleading, it says it is for ZIP formatted files but infact System.IO.Compression.GZipStream doesnt create ZIP streams but GZIP streams. Perhaps you want to change it to avoid confusion.

To use ZIP format (not GZIP) it is common using SharpZipLib (not sure about the name of the library)

Thanks for your valuable suggestion , I will make this changes.
 

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