Forum: Ruby on Rails Newbie: Saving file from a URL into DB

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B0ac4f8202d7b02a69f34fe8e29ea7b3?d=identicon&s=25 Chris Prakoso (mahadewa)
on 2006-03-23 16:46
Hi all,

I'm just starting to learn RoR, and would like to ask a question.
I know that we can 'upload' file from local machine and save it to a
database. Now, say I have a photo which I store in other website (for
example Flickr).  This photo obviously has a URL pointing to it, e.g.
http://www.flickr.com/username/photoname.jpg.
How can I 'save' this photo/file into my RoR application's database ?

Thanks a lot for your help,
Chris
5301cef77ec4942463fae0ba820b6b57?d=identicon&s=25 Tim Case (Guest)
on 2006-03-23 17:23
(Received via mailing list)
Have you looked at file upload code and considered if you can hack it to
take input from a url instead of from the local file store?

Tim Case
This topic is locked and can not be replied to.