#1 2020-01-17 12:58:55

domek
Member
Registered: 2019-04-09
Posts: 8

PasZip and UncompressMem

I have data compressed with ZLIB wrapped using ZLIB headers.
The data is not corrupted. I can decompress using PHP's gzuncompress:
https://www.php.net/manual/en/function.gzuncompress.php
but when I try UncompressMem() it fails.

So what kind of data UncompressMem() expects if not Zlib? Raw deflate, Zip, Gzip?
Also how I can unpack Zlib uzing PasZip?

Offline

#2 2020-01-17 13:17:10

domek
Member
Registered: 2019-04-09
Posts: 8

Re: PasZip and UncompressMem

From my tests I think UncompressMem() expects Raw deflate and therefore I should use:
UncompressMem(@InBuffer[2], @OutBuffer[0], InBufferLen-6, OutBufferLen);
Is this correct approach?

Last edited by domek (2020-01-17 13:18:27)

Offline

Board footer

Powered by FluxBB