views:

170

answers:

1

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

+1  A: 

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.

Paul Wagland
We are using GZipInputStream in both java and c#.NET, we are not using Deflate