For Programmers: Free Programming Magazines  


Home > Archive > Compression > May 2005 > Using zLib to decompress text compressed in Java.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using zLib to decompress text compressed in Java.
mozila

2005-05-24, 3:55 am

Hello,

I'm trying to decompress text compressed in Java and getting
"incorrect header check" error.
According to java docs I can write compressed data with and without the
header. I have tried both and still getting the same error.

I'm reading the buffer from the file and calling uncompress() method:
uncompress( pData, &dataSize, (const unsigned char*)pstrBuffer,
compArraySize)

Java docs has stated that compression is GZIP compatible and indeed
gzread() method was able to decompress this data.
I'm using zLib 1.2.2.

Any help will be greatly appreciated!!!!

Thanks,
Daniel

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com