How to compress multiple files in a GZip file with the GZipStream class?

Martin picture Martin · Nov 7, 2010 · Viewed 9.4k times · Source

I am simply looking for a way to compress multiple files in a GZip file with the GZipStream class. Anybody has an idea how to do that?

Answer

Andrew Aylett picture Andrew Aylett · Nov 7, 2010

In general, the gzip format doesn't support multiple files. Traditionally, one bundles multiple files using tar before compressing the result; you probably want to do something similar.