I have a dump after java.util.zip.Deflater
(can confirm it's valid because Java's Inflater
opens it fine) and need to open it in .NET:
byte[] content = ReadSample(sampleName);
var input = new MemoryStream(content);
var output = new MemoryStream();
using (var z = new System.IO.Compression.DeflateStream(input, CompressionMode.Decompress, true))
z.CopyTo(output);
This throws
System.IO.InvalidDataException : Block length does not match with its complement.
Tried Ionic.Zlib.DeflateStream
- similar exception. How can i do that?
The dump starts with 97 86 E8 92 47 3D 40 EA (if that matters).
Update: Unfortunately, i have no control over Java party as the system is in production.