in reply to Help with Uncompressing Data

Does the web client not return the compressed file properly?

If you wrote the data to a file and then used the uncompress program from the command line, you could determine if that is the problem. It's always a good idea to check that your data is good before attempting to debug your code.

Replies are listed 'Best First'.
Re: Re: Help with Uncompressing Data
by Anonymous Monk on Apr 07, 2001 at 00:48 UTC
    Sorry, Yes the response content does return the correct data. I did write it to a file and it will uncompress nicely wiht either the UNIX uncompress or gunzip commands. Also, my version of Zlib is 1.11 and the c library for zlib is 1.1.3. Replacing the reference with the content doesn't make any difference. I've also tried the memGunzip function from Compress::Zlib and I get the same error message. Thanks for the checking ideas.