Creating a Gzip stream from multiple filestreams

Apr 2, 2012 at 6:31 PM

Hello everyone,

I tried dowloading the documentation to no avail, and didn't found any samples, so I'm asking for help here.

Here is what I want to do:  create a method that take a dictionnary of <string,MemoryStream> as input. The string is the name of the file and the stream is its content. This method should return a TGZ memory stream of those files. I'm using c# 4.0.

The goal here is to do everything in memory, no files on disk.

I'm sure I'm not the first to try to do that so could anyones point me to a link of a code sample that could help me get on track ?