Similarities between DeflateStream and GZipStream in .NET

By Perry

This also shows how to compress multiple files.

Similarities in DeflateStream and GZipStream

• Both classes have almost similar basic logic of algorithm and implementation techniques for both classes.
• These classes are normally used to compress single file at a time.

For multiple file compression, you have two options:
1. Assemble collection of files in a tar archive before applying GZip.
2. Apply concatenation of streams of multiple files to achieve that using GZip only.

Regards.

Similarities between DeflateStream and GZipStream in .NET  (1280 Views)