Possible Duplicate:
How to create zip file only in memory in ruby?
Is anybody aware of a open source Ruby library that allows the user to pr开发者_开发问答ocess zip file entries in memory? i.e. without writing them to disk
Hi I'm using rubyzip library. You can do something like this:
Zip::ZipFile.foreach(file) do |entry|
istream = entry.get_input_stream
data = istream.read
#...
end
精彩评论