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.
How can I ‘save’ this photo/file into my RoR application’s database ?

Thanks a lot for your help,

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs