read extraction in memory

Sep 29, 2011 at 5:50 PM

Hi Guys,

I see that you can extract contents and save them to a file.  However I would like to able read the contents of the file in memory without having to save and then delete the physical file.  Is there a way to do it?

 

Thanks,

Coordinator
Oct 2, 2011 at 11:12 PM

Yes - there's a method called OpenReader() on the ZipEntry class. Call it to get a stream that reads uncompressed data for a given entry.  What you do with the data you read is up to you.  There are examples for how to use it in the documentation, which is available in the DotNetZip devkit download, or  online at http://dotnetzip.codeplex.com/documentation.