From: Paul Lutus Date: 2006-11-16T15:45:05+09:00 Subject: Re: need to fetch a zip file from url and unzip it phil.swenson@gmail.com wrote: > I"m aware of: > > require 'open-uri' > zipFile = open(URL).read > > but this pulls back a string... I need to pull back a zip file > (binary). > > Any ideas? Well since you are trying to unzip a ZIP file, I suggest you read about the Zlib::Inflate class in your documentation. Start here: http://www.ruby-doc.org/core/classes/Zlib/Inflate.html The above page shows this example: def inflate(string) zstream = Zlib::Inflate.new buf = zstream.inflate(string) zstream.finish zstream.close buf end -- Paul Lutus http://www.arachnoid.com