Users browsing this thread: 1 Guest(s)
help with ZLIB files
#5
(03-12-2025, 08:18 PM)0worm0aj Wrote: i was wondering if there was anyone with better insight on ZLIB files could help me
There'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 that
Try 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.
Reply
Thanked by: 0worm0aj


Messages In This Thread
help with ZLIB files - by 0worm0aj - 03-12-2025, 08:18 PM
RE: help with ZLIB files - by applecuckoo - 03-13-2025, 01:49 AM
RE: help with ZLIB files - by 0worm0aj - 03-13-2025, 12:49 PM
RE: help with ZLIB files - by applecuckoo - 03-13-2025, 10:35 PM
RE: help with ZLIB files - by gameripper - 03-14-2025, 01:13 PM

Forum Jump: