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.

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