How to uncompress gzip archive compressed by deflate method.

Zarathustra adam.chrapkowski at yahoo.com
Fri Nov 12 15:33:56 PST 2010


Maybe it is a stupid question but I need yours help.
As in the topic. I have a Gzip archive in the buffer and I need to extract
these archive into another buffer.

I tried: void[] _uncompressed = uncompress(_compressed);

but it throws 'std.zlib.ZlibException: data error.'

Is it possible to do with Phobos2 ? The archive is not corrupted because It
works fine after saving on the disk.

Thanks in advance.


More information about the Digitalmars-d-learn mailing list