module Selenium::WebDriver::Zipper

def zip_file(path)

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