lists wrote: > Hi, > > I am still fairly new to Ruby. > > Given the URL of an image, I would like to craft some code that grabs > the > image from the remote Web server and puts it in a file on the local > machine. > > Can anyone give me some tips on doing that? > > Thanks, > Hunter requre 'open-uri' open("output_filename.jpg", "w") { |outfile| outfile.write open("http://image_url.jpg") { |inf| ifile.read } } -- Posted via http://www.ruby-forum.com/.