# RE: Showing Images from a file store

**URL:** <https://www.ruby-forum.com/t/re-showing-images-from-a-file-store/93883>\
**Category:** Rails\
**Created:** [April 12, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/re-showing-images-from-a-file-store/93883 "2006-04-12T22:19:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [April 12, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/re-showing-images-from-a-file-store/93883/1 "2006-04-12T22:19:46Z")

</div>

Hi Josh,  
Thanks for the clarification. Is there any online example somewhere that  
you are aware of so that I can see it in action?  
Thanks,  
Silvy Mathews

* * *

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Josh K.  
Sent: Wednesday, April 12, 2006 12:39 PM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Rails] Showing Images from a file store

On 4/12/06, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

```
I wanted to show the image along with other data from the

```

controller.  
How do I do that. Looks like I am not understanding it.  
…  
\<%= send\_file ‘\xx.xx.xxx.xx\xx\xx\xxx\abc.gif"’,  
:type =\> ‘image/jpeg’,  
:disposition =\>  
‘inline’%\>

Silvy,

What you want to do is set up a controller that handles the dispatching  
of the images. It is there that you would have the send\_file command.  
Remember that in HTTP you are going to have seperate request for each  
item on the page, so map the new controller url using routes and use  
that url in your view, for example “/dynamicimages/abc.gif”.

Does that make sense?

Josh
