From: Jan Svitok Date: 2006-11-17T00:27:07+09:00 Subject: Re: need to fetch a zip file from url and unzip it On 11/16/06, phil.swenson@gmail.com wrote: > Isn't Zlib for gzip? I'm trying to access a zip file. > > To use ruby Zip for this, but I have a string, not a binary form the > > > require 'open-uri' > > > zipFile = open(URL).read > > code... > > not sure how to proceed. > > thanks, The string you have is the content of the zip file. To make it a file just write it to a file. File.open(NAME, 'wb') {|f| f.write string} You may want to try rubyzip.sf.net I'm not sure but I think gzip and zip files use the same compression.