From: lasitha Date: 2009-04-07T00:45:51+09:00 Subject: Re: File copy On Mon, Apr 6, 2009 at 12:23 PM, Tushar Gandhi wrote: > Hi, > > File.copy("http://photos-d.ak.fbcdn.net/photos-ak-snc1/v2574/90/75/704291251/457931_8289306.jpg","/images"); > Hello Tushar, Take a look at 'net/http', which is included in the ruby standard library: http://ruby-doc.org/core-1.9/classes/Net/HTTP.html For example the following code will download and save the ruby logo off ruby-lang.org: require 'net/http' uri = URI.parse('http://www.ruby-lang.org/images/logo.gif') Net::HTTP.get_response(uri) do |response| File.open('/tmp/logo.gif', 'w') {|f| f.write response.body } end There are various other ways to go about doing this - some of which have been mentioned above - but 'net/http' is a good place to start. solidarity, lasitha.