SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
require 'open-uri' open('image.png', 'wb') do |file| file << open('http://example.com/image.png').read end