Attachment_fu - Problem in displaying image data from DB

K

Karthi kn

Hi,

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...
 
M

Mukund

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,610
Members
45,255
Latest member
TopCryptoTwitterChannels

Latest Threads

Top