Category Archives: C#

Decompress, Extract, Unzip file with GZipStream Class in C#

Code snippet for decompressing file with GZipStream class in C# (Apply for .net 4.0). GZipStream class is for compressing and decompressing file(s) into gzip (read about gzip format on wikipedia) format which is based on based on the DEFLATE algorithm. So data is read in on a byte-by-byte basis, so you can not perform multiple passes to determine the best method for compressing entire files or large blocks of data.

following code is for decompressing or extract a file in c# :

Continue reading Decompress, Extract, Unzip file with GZipStream Class in C#