On Mon, Dec 6, 2010 at 2:59 PM, Marnen Laibow-Koser <li...@ruby-forum.com> wrote: > Rajinder Yadav wrote in post #966402: >> How can I upload an attachment and store it into a database as a binary >> blob object? > [...] > > Don't. Keep binary data in the filesystem. That way you won't have to > invoke Rails every time you want to serve a file, and your database will > be easier to maintain. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > mar...@marnen.org
Marnen, you got a valid point, that didn't cross my mind. Thanks! -- Kind Regards, Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely GNU/Linux: 2.6.35-22-generic Kubuntu x86_64 10.10 | KDE 4.5.1 Ruby 1.9.2p0 | Rails 3.0.1 -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.