I'm trying to compress a set of text files using this library...
I've been running into problems with files that are 32k or larger. I keep getting a
Z_MEM_ERROR.
In the manual for the library it doesn't mention the fact that you can't compress
anything larger then 32k. Does anyone know if this
Hi
Try using my code, it works fine with large textfiles.
int gzip(FileHand inf, FileHand outf)
{
z_stream gzipit;
int readgot, isav;
unsigned long crc32val, itotal, total = 0;
unsigned char ibuf[BSIZ], obuf[ZBSIZ];
/*to
At 01:08 AM 7/28/2004, you wrote:
I'm trying to compress a set of text files using this library...
I've been running into problems with files that are 32k or larger. I keep
getting a Z_MEM_ERROR.
In the manual for the library it doesn't mention the fact that you can't
compress anything larger
Don't get me on the numbers, but ZLib uses by default an extra 64K to
deflate, and 32K by inflate. You can change the defalte numbers using lower
MEM_LEVEL and a lower NUM_BITS. See the ZLib docs about this.
LionScribe
Ben Combee [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
At