zlib and zip archives

alin at tumbleweed.com alin at tumbleweed.com
Wed Jan 5 01:09:15 EST 2000


Hi,

It sounds stupid but I really don't have a clue:

How do you use zlib to create a zip archive using the pkzip format?  I
looked through the documentation, it seems no where indicates that it
supports the zip archive format?

Your help is greatly appreciated!

Thanks,
Anne

In article <QBc74.12$O3.154 at uchinews>,
  "Nick Collier" <nick at src.uchicago.edu> wrote:
> Hi,
>
> I've been using zlib to create a zip archive using the pkzip format,
and
> I've only been half succesful. The file headers and the central
directory
> records and end of central directories records seem to get written
> correctly. Winzip and infozip's unzip both report the correct files
and
> details when listing the files in the archive. However, when I try to
> decompress the data and I get an error with the message "invalid
compressed
> data to inflate". I'm using zlib.compress with a level of 8 to
compress the
> data.
>
> Any suggestions as to what I'm doing wrong?
>
> thanks,
>
> Nick
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list