1 2 3 4 |
require 'open-uri' open('image.png', 'wb') do |file| file << open('http://example.com/image.png').read end |
1 2 3 4 |
require 'open-uri' open('image.png', 'wb') do |file| file << open('http://example.com/image.png').read end |