Newbie: Saving file from a URL into DB

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

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 C.