On Apr 4, 2009, at 09:45, Dom wrote:

> compressedBroadcast = Zlib::Deflate.new(nil, - 
> Zlib::MAX_WBITS).deflate(binaryBroadcastData, Zlib::FINISH)

I think you're asking for a gzip stream here with your -MAX_WBITS