Hi,
I have a block of compressed data. The first two bytes are hex codes 78 and DA. The data come from a poorly documented application that in the past has used ZLIB compression where the first two bytes are 78 9C. I can decode ZLIB correctly but when I try to apply the same algorithm to the data starting with 78 DA, it fails. The application may have used a completely different compression standard for that block of data.
I found on some other forum information that seem to indicate that both 78 9C and 78DA are ZLIB compressed but 78 DA uses 'strong' (extreme) compression and 78 9C uses 'normal' (standard) compression.
In brief, I receive compressed data starting with bytes 78 and DA and i'm trying to decompress it. When I use the ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream class, the returned buffer is null.
Code:
MemoryStream mem_stream = new MemoryStream(source,(int)offset,(int)len_in);
ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream input_stream =
new ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputStream(mem_stream);