I need to download an image, and I’ve mucked about with Net::HTTP
resp = Net::HTTP.get_response(‘www.mydomain.com’, ‘/test.jpg’)
f = File.new(“test.jpg”,“w”)
And various other combinations using HTTP.get etc. Anyway, I get an
image, but it looks very psychedelic. This is obviously not the correct
way. I also don’t want to use Imagemagick for this.
Has anybody done this before?