require 'zip' source_file = "blah.zip" string = File.binread(source_file) Zip::File.open_buffer(string) do |entries| entries.each {|entry| puts entry.name } end