03-14-2025, 01:13 PM
(03-12-2025, 08:18 PM)0worm0aj Wrote: i was wondering if there was anyone with better insight on ZLIB files could help meThere's no such thing "ZLIB files". ZLIB is just a compression codec (the de-facto standard implementation of the "deflate" codec, see RFC1951).
To use this codec in a file, one would need a container format. Several of these exists, the first bytes would tell:
- 'P', 'K': it is a ZIP container (with method 8), try 7zip in this case.
- 0x1F, 0x8B: it is a GZIP container, try gzip for Windows.
- 0x78, 0x01 or 0x78, 0x5C or 0x78, 0x9C or 0x78, 0xDA: these are 2 bytes ZLIB prefixes to the deflate stream (specific to the ZLIB library alone, not part of the compressed data).
(03-12-2025, 08:18 PM)0worm0aj Wrote: Ive tried looking and decompressing with python and c++ but im not a programmer so i haven't been successful with thatTry prefixing the deflate stream with the two bytes 0x78, 0xDA before you pass it to python's decompressor routine. Or try to remove the first two bytes if the former doesn't work. No guarantees, but might get lucky.