> open('http://chart....') do |chart|
>    File.open('chart.png', 'w') {|f| f.write chart.read }
> end

This is wonderful, I knew nothing of open-uri. However, I cannot seem to 
get it pull an image. Using the Google link above, which produces a PNG 
image, I get the error "bad URI(is not URI?)".

Looking at the API for open-uri, I could not find any information about 
images.

I played around with it, I can beautifully retrieve web pages and save 
them to disk, but what about images?

Thanks for the help!
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to