From: jim@... Date: 2004-11-23T05:42:14+09:00 Subject: Re: Zlib::GzipReader/Writer and strings * Mauricio Fern�ndez [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 "" > => # > >> 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