bapi
bapi

Reputation:

GZIP compression did not work good for a data of 64K

Hi I have created compressin and decompression technique using gZipinputstream in both c#.NET and java If I compress upto 15000 bytes in c#.NET then i can decompress it in java but if i compress 64000 bytes in c#.NET then i am not able to decompress it in java. But I can decompress it using C#.NET. So how to come out of this problem

Thanks Bapi

Upvotes: 1

Views: 521

Answers (1)

Paul Wagland
Paul Wagland

Reputation: 29129

At a guess you are probably using DEFLATE_64 in the .net code. This will compress in up to 64K blocks, DEFLATE, which is what Java supports only compresses up to 32K blocks. On the .net side, try setting your compressor to only use DEFLATE instead of allowing it to use DEFLATE_64 and you might have more luck.

Upvotes: 1

Related Questions