Jul 11, 2009 at 6:29 PM
Edited Jul 11, 2009 at 6:31 PM
For some project I currently use both Ionic.Zip and SharpZipLib but wanted to get rid of one of the libraries (I try to get rid of SharpZipLib). However I currently have a problem and can't seem to find a solution for Ionic.Zip:
It's as simple as that:
Stream fbs = Assembly.GetExecutingAssembly ().GetManifestResourceStream (FallbackDataFileName);
ZipFile fallbackZip = ZipFile.Read (fbs);
ZipEntry fallbackEntry = fallbackZip[fileName];
At that point I would need a stream to the contents of the ZipEntry.
The only way I found would be to call the Extract method to extract to a stream. However that does not really work because then I would uncompress the entire data into memory, which is not feasable.
With SharpZipLib this is working like: Stream s = fallbackZip.GetInputStream (fallbackEntry)
Is there a way to archieve this in Ionic.Zip?