Decompressing empty streams works with System.IO.Compression.GZipStream, but not with Ionic.Zlib.GZipStream

Aug 14, 2009 at 2:39 PM

I decided to use the GZipStream from this library, instead of the one built into the .Net Framework, as I found the later one not good enough. (The GZipStream from the framework compressed my 300 MByte input into 150 MBytes, while the one from this library compressed it into 60 MBytes even with the fastest compression.)

However when I started using this implementation, a difference came up comparing to the implementation in the framework: it cannot handle empty input streams during decompression. While the framework version of GZipStream decompressed empty streams successfully into empty streams, the one from this library throws an exception.

This is a minor issue, however it would be nice, if the two implementations would work the same way regarding this. :)

Aug 14, 2009 at 3:07 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Aug 14, 2009 at 3:17 PM