Zlib: how to have a header and compressed data



Hello

I have some data that I can compress into a file with Zlib.
Now, I'd like to have a header for this file that describes the data.
Since the header information depends on the data, it means the header
will need to be written in the file later on.

How is it possible to write this block of data at the begin of the file
with zlib ?

Paul D.

.



Relevant Pages

  • Re: File type and starting address
    ... >> This is for a PowerPC board of unknown manufacture. ... Starting at offset 0x14 you have the start of a vxWorks ... The other is the zlib libraries and a limited 'C' ... I think that the zlib format has some "header"; ...
    (comp.os.vxworks)
  • Re: Zlib: how to have a header and compressed data
    ... I'd like to have a header for this file that describes the data. ... Writing a footer is easier: First skip one word at start of file. ... for zlib to be able to deal with random-access files. ... If zlib doesn't allow random-access mode when decompressing the file ...
    (comp.compression)
  • Re: [-mm] Move zlib compression library to common directory [TAKE TWO]
    ... This patch moves the zlib compression and decompression code ... to a common directory. ... The zutil.h header, which is not meant ... from (the now truly private) zutil.h too ... ...
    (Linux-Kernel)
  • Re: Zlib: how to have a header and compressed data
    ... > I have some data that I can compress into a file with Zlib. ... I'd like to have a header for this file that describes the data. ... Prev by Date: ...
    (comp.compression)
  • Re: DropStuff registration nightmare
    ... In OS X, try right clicking on the file/folder you want to compress, ... header is not valid unless you remove the obvious. ... Prev by Date: ...
    (comp.sys.mac.apps)