# File lib/selenium/webdriver/common/zipper.rb, line 47 def zip_file(path) with_tmp_zip do |zip| add_zip_entry zip, path, File.basename(path) zip.commit File.open(zip.name, "rb") { |io| Base64.strict_encode64 io.read } end end