manohar amrutkar
2007-Mar-08 12:20 UTC
How to store (doc) file containts in Database (blob type)
hi, In my controller on Upload am trying to store file containts in table ArticleDetails. @docfile = params[:article_file] ArticleDetail is my model in which ArticleDetails is a BLOB data type field. @articledetail.ArticleDetails = @docfile.read but it doesn''t store anything. please tell the way how to do this? thanks. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---