开发者

Processing Zip files in Ruby [duplicate]

开发者 https://www.devze.com 2023-01-04 03:36 出处:网络
This question already has an answer here: Closed 10 years ago. Possible Duplicate: How to create zip file only in memory in ruby?
This question already has an answer here: Closed 10 years ago.

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
0

精彩评论

暂无评论...
验证码 换一张
取 消