Upload images and displaying of images

Hi,
I am using ruby with postgresql,
I want to know how to upload images to path and
then store the path in the database.i would not like to store the images
in
database .
i also want to know how to display the uploaded images.

-koli

Hi,

Well you can create a multi-part form with a file input, submit the
form…
get the image data from the uploaded image and store it in a binary
field.
For showing it again, um, perhaps a controller action to show images
which
uses send_data. A much nicer way would not to store images in the
database,
such as looking at the file_column or attachment_fu plugins.

Cheers,
James

James Brooks wrote:

Hi,

Well you can create a multi-part form with a file input, submit the
form…
get the image data from the uploaded image and store it in a binary
field.
For showing it again, um, perhaps a controller action to show images
which
uses send_data. A much nicer way would not to store images in the
database,
such as looking at the file_column or attachment_fu plugins.

Cheers,
James

Thanks for the reply.downloaded file_column and got it working.
the other thing what i want it add comments along with the images.
i want the comments also to be shown with the images .how do i do it??

Thorsten M. wrote:

Thanks for the reply.downloaded file_column and got it working.
the other thing what i want it add comments along with the images.
i want the comments also to be shown with the images .how do i do it??

simply add a textfield to the form and store the content in the db,
together with the pa

Thanks for the reply.one more thing i wanted to know was how to display
images
as thumnails as soon as uploaded.
An example would be helpful.

-Koli

I suggest you look at the attachment_fu plugin.

Thanks for the reply.downloaded file_column and got it working.
the other thing what i want it add comments along with the images.
i want the comments also to be shown with the images .how do i do it??

simply add a textfield to the form and store the content in the db,
together with the path