Jano Svitok
11/16/2006 3:27:00 PM
On 11/16/06, phil.swenson@gmail.com <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.