Jim Freeze
11/22/2004 8:42:00 PM
* Mauricio Fernández <batsman.geo@yahoo.com> [2004-11-22 18:21:07 +0900]:
> Just doing Zlib::GzipReader.new(anIO) (where anIO responds to #read
> with the same semantics as IO) works for me.
>
> >> require 'stringio'; require 'zlib'
> => true
> >> a = StringIO.new ""
> => #<StringIO:0x40201c14>
> >> b = Zlib::GzipWriter.new a; b.write("foo"*10); b.finish; a.string
Thanks. I think I was missing the b.finish statement.
--
Jim Freeze
Code Red. Code Ruby