Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created May 9, 2012 13:23
Show Gist options
  • Save jonpaul/2644455 to your computer and use it in GitHub Desktop.
Save jonpaul/2644455 to your computer and use it in GitHub Desktop.
Writing image url's with fileutil and open-uri
require 'open-uri'
File.open('/Users/jon-paullussier/sandbox/mypicture.jpg', 'wb') {|f| f << open("http://i.imgur.com/0JEgI.jpg").read}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment