On 2005-03-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I have a string which I try to decompress:
>
>   body = zlib.decompress(body)
>
> but I get
>
>   zlib.error: Error -3 while decompressing data: incorrect header check
>
> However, I can write the string to a file and run gunzip with the
> expected results:

gzip files have a header preceding the zlib stream. Try the gzip module.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to