[Feature request] Add support for streaming from `Zip::InputStream`
Opened this issue · 0 comments
blakegearin commented
Gem: rubyzip
Repo: rubyzip/rubyzip
Documentation:
Example:
Zip::File.open(zipfile.path) do |zip_file_entries|
zip_file_entries.each_with_index do |entry, index|
pdf_reader = PDF::Reader.new(entry.get_input_stream)
...
end
end
Current error: ArgumentError: input must be an IO-like object or a filename (Zip::InputStream)
Zip::InputStream
is documented specifically as IO-like.
Adding compatibility for this would remove the need to unzip a ZIP file of PDFs, trading memory for disk space.