Skip to content

[Feature request] Add support for streaming from Zip::InputStream #520

@blakegearin

Description

@blakegearin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions