Hi Ben, I'm not sure if I understood you well, but I believe it's as simple as coding the Action just like you said and inserting the corresponding URL to call it (I suppose it would have to include the imageID as a parameter) inside, let's say, the "src" attribute on an <image> tag.
HTH, Freddy. -----Mensaje original----- De: Turner Benjamin [mailto:[EMAIL PROTECTED] Enviado el: jueves, 12 de febrero de 2004 12:31 Para: Struts-User (E-mail) Asunto: struts actions and content/type responses hello, i am looking for a solution for the following problem: in my database i have various BLOB items which represent images (gif or jpg). i would like to create a struts action which returns this (by passing along a request parameter to the action which is the imageid in the database. is it possible to set the response content/type in an action and then return the image itself somehow? maybe with a requestdispatcher? any ideas/pointers to this would be welcome. ty, Ben --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]