Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about ZLib

0 views
Skip to first unread message

AberAber

unread,
Jul 21, 2005, 10:35:38 PM7/21/05
to
I've got some files that are compressed using GZip's specification.
However, they don't have the headers I presume GZip has such as checksum,
filename, something like that in the beginning. It starts off right into
the compression with the 3-bit intro thing that each section does to tell
which type of compression method in GZip it is using and whether it is the
last one, etc.

How can I use ZLib to decompress this?


Mark Adler

unread,
Jul 22, 2005, 7:43:52 PM7/22/05
to
AberAber wrote:
> It starts off right into
> the compression with the 3-bit intro thing that each section does to tell
> which type of compression method in GZip it is using and whether it is the
> last one, etc.
> How can I use ZLib to decompress this?

zlib has a "raw" inflate mode for decompressing RFC 1951 deflate
streams. Please read the documentation in zlib.h.

mark

0 new messages