Unzipping From a Stream?

May 16, 2008 at 2:37 PM
Edited May 16, 2008 at 2:39 PM
I see on the home page that one should be able to extract from a stream "Does the library support zipping to a stream? Or unzipping from a stream?
Yes. As well you can zip to and from filesystem files, as you would expect. "

I'm having trouble figuring out exactly how to do this.  I see the Read(ZipStream) method, but all I see for Extract is the Extract(filename, OutputStream).  I want to take a zip file that is in a memory stream and extract each file in the original memory stream to a new memory stream.  Is there support for this that I'm just not seeing?

Any help on this would be appreciated.

Thanks,
Charley
Coordinator
May 24, 2008 at 7:44 PM
I think what you want to do is ZipFile.Read() passing in the stream that contains the zip data.
Then, for each entry in the stream that you want to extract, I think you call
ZipFile.Extract(filename, OutputStream), passing in the filename of the thing contained in the zip archive, that you want to extract to the output stream.

Furshtay?