# How to store (doc) file containts in Database (blob type)

**URL:** <https://www.ruby-forum.com/t/how-to-store-doc-file-containts-in-database-blob-type/88138>\
**Category:** Rails\
**Created:** [March 8, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-store-doc-file-containts-in-database-blob-type/88138 "2007-03-08T13:20:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manohar\_amrutkar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ecd19e/32.png) [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Post date:** [March 8, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-store-doc-file-containts-in-database-blob-type/88138/1 "2007-03-08T13:20:47Z")

</div>

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.
