Skip to content

Instantly share code, notes, and snippets.

@nolim1t
Created September 8, 2014 09:14
Embed
What would you like to do?
Base64
require "base64"; s = File.new("Somefilename", "rb"); contents = s.read; puts Base64.encode64(contents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment