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.