# Saving Images to a BLOB database column - and getting them b

**URL:** <https://www.ruby-forum.com/t/saving-images-to-a-blob-database-column-and-getting-them-b/109743>\
**Category:** Rails\
**Created:** [July 18, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/saving-images-to-a-blob-database-column-and-getting-them-b/109743 "2007-07-18T15:24:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![magiclava](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f05b48/32.png) [@magiclava](https://www.ruby-forum.com/u/magiclava)\
**Post date:** [July 18, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/saving-images-to-a-blob-database-column-and-getting-them-b/109743/1 "2007-07-18T15:24:54Z")

</div>

Hi,

I’d like to save an image file from a local drive to a blob database  
column. I can read the file ok, but i’m not sure how to send it to  
the database. Additionally i would like to read the database and  
display the file on a web page.

I’ve tried googling without much success…

Just a pointer in the right direction will be very helpful.

Thanks in advance,

Mike
