From: Alexey Borzenkov Date: 2009-04-05T18:48:47+09:00 Subject: Re: zlib Deflate to java.util.zip inflate problem Dom wrote: > Sorry, should have been more clear, I'm not creating files. I did > find it, but it seems entirely focused on zip files; I'm just using > the deflate/inflate to squeeze some data before sending it over the > wire. Being that they're both based on zlib, you'd think that deflated > from one would be inflatable by the other and I was hoping that > perhaps I'm just missing a setting or not using a correct parameter to > one of the ruby calls. But, I've pretty much tried every permutation > and cannot get the server to inflate the data. I'd think somebody's > doing this somewhere with success. Could it be that your java side is expecting the new zlib format? As could be seen in your first post, you are using -MAX_WBITS, which enables old (headerless? don't know what it's called) zlib format, that has no gzip header and no checksum. Maybe you should be using +MAX_WBITS (the default), which adds necessary header and checksum. -- Posted via http://www.ruby-forum.com/.