Image from database and display

I have an image saved in a database and am trying to display it in my view. Here is my code:

View- <%= image_tag( url_for :action => 'image', :id => 1, :pseudo_id => @pseudo.id) %>

Controller- @image = Image.find(:first, :conditions => ['enpseudo_id = ?', @pseudo.id]) send_data @img.img, :content_type => 'image/gif'

What I get is a broken image, but the dimensions look like the correct dimensions which makes me thing that it is actually reading the image from the database but not displaying it correctly. Thanks in advance,

-S

Yes... the image is fetched by the browser as a completely separate request, so you need to be able to handle that request.