From: Tobias Reif Date: 2001-10-08T22:02:19+09:00 Subject: [ruby-talk:22234] Re: gzip a string ts wrote: > str = Deflate::deflate "hello" > p Inflate::inflate str works, thanks. Now: how to serve gzipped content? This runs on my local machine: (I hear strange clicks inside the computer) -- require 'zlib' print "Content-type: image/svg+xml\n\n" open('utf8.svg','r') do |file| @svg = file.read end gz = GzipWriter.new($stdout) gz.print @svg gz.close -- Should that work on a server? Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/