Working with GZip Archives in C#
Overview
Aspose.ZIP for .NET API lets work with creating and managing GZip archives in your applications without the need of any other 3rd party applications. Aspose.ZIP API provides GZipArchive class to work with GZip archives. This class provides various methods to perform operations on archives.
Gzip compression algorithm is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding.
Compress A File
The following code example shows how to compress a file using GZipArchive instance.
Open GZIP Archive
The following code example shows how to open a GZip archive.
Extract to Memory Stream
The following code example shows how to open an archive from a stream and extract it to a MemoryStream.
Save to Stream
The following code example shows how to open and save to Stream.