Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Attachment_fu - Problem in displaying image data from DB
Karthi kn
8/4/2008 9:15:00 AM
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...
--
Posted via
http://www.ruby-...
.
1 Answer
Mukund
8/4/2008 1:14:00 PM
0
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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Attachment_fu - Problem in displaying image data from DB
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password