# Rendering images

**URL:** <https://www.ruby-forum.com/t/rendering-images/119942>\
**Category:** Rails\
**Created:** [November 12, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/rendering-images/119942 "2007-11-12T13:45:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo\_Borges\_Bar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/dfb087/32.png) [@Leonardo\_Borges\_Bar](https://www.ruby-forum.com/u/Leonardo_Borges_Bar)\
**Post date:** [November 12, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/rendering-images/119942/1 "2007-11-12T13:45:03Z")

</div>

Guys,  
Sorry for the rush mail but here ir goes:

```
send_data (File.new("public/images/royal_palace.JPG").read,
  :filename => 'test.jpg',
  :type => "image/jpeg",
  :disposition => "inline" )

```

The above piece of code doesn’t work… really can’t tell why. It just  
shows  
me my action name in the page:

[http://localhost:3004/image/show\_image](http://localhost:3004/image/show_image)

Any ideas?

Thanks very much,  
Leo
