Created
May 17, 2017 07:57
-
-
Save gusanthiago/5d8298d8563ce3de2f1263e45e1164c8 to your computer and use it in GitHub Desktop.
Image get and save open uri
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
open('file_name_uri.png', 'wb') do |file| | |
file << open('https://uva.onlinejudge.org/templates/hm_yaml_2_5/img/onlinejudgelogo2.png').read | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment