Attachment_fu - Problem in displaying image data from DB


I am using attachment_fu plugin to upload images to database(I am using
“:storage => :db_file”).

Now I want to read the image and display it in a web page.

I am able to read it correctly, but i don’t know how to display this
read image in a webpage. Both send_data and send_file are for
downloading the image.

I tried with “image_tag” method but didn’t succeed.

Any suggestions are appreciated.

Thanks in advance…

You can use send_data with the :disposition parameter to make it
inline. Just make sure you have the content type correct and it
should work.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs