[Zope] Help! publishing Images from a Database

2000-12-07 Thread Mohan Baro
Can anyone help me to I want to know how I can publish images stored in a SQL database. I am trying to create an online photo album that stores images in a database. The features I want to implement are: RetrieveImage, UpdateImage, InsertImage I am running zope on linux mandrake and use

Re: [Zope] Help! publishing Images from a Database

2000-12-07 Thread Joh Johannsen
This works with mysql: 1. make mysql table with a LONGBLOB field for holding the image, suppose you make it a field called "imageData" 2. in your DTML, do this (assume getImage gets the image you want) dtml-in getImage dtml-call "RESPONSE.setHeader('content-type','image/png')" dtml-return