Skip to content

Instantly share code, notes, and snippets.

@raskchanky
Created February 11, 2010 18:03
Show Gist options
  • Save raskchanky/301764 to your computer and use it in GitHub Desktop.
Save raskchanky/301764 to your computer and use it in GitHub Desktop.
file = File.new("output.jpg", "wb")
file << [str].pack('H*')
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment