From: Dom Date: 2009-04-05T01:45:11+09:00 Subject: zlib Deflate to java.util.zip inflate problem Hello, I'm a total ruby newbie and am developing a simple app that tests an existing web app. Part of the request I need to post contains data that needs to be compressed as the web app will uncompress it. Currently, the java app just uses simple java.util.zip.Inflater to do this, and I've been able to do this from cocoa to java no problem. Using Ruby to craft the data and post request has presented a problem: when the web app gets the request, I'm getting exceptions from java.utl.zip Unkown Compression format I can't change the back end, only the ruby client side. Does anybody know how to properly use the ruby zlib library to deflate data such that java's built in classes can inflate it? Sorry if this is a basic question; I've googled this to death and hit nothing but dead ends. Here's the call that compresses: compressedBroadcast = Zlib::Deflate.new(nil, - Zlib::MAX_WBITS).deflate(binaryBroadcastData, Zlib::FINISH) Other than this, I'm very much enjoying the other Ruby bits. Thanks for any pointers. Dom