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

  • Thread starter Thread starter Jayesh Sorathia
  • Start date Start date
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)
 
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.
 
Back
Top