upload images and displaying of images


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.


I suggest you look at the attachment_fu plugin.