Hi Juan,

Juan Javier Carrera Obrero wrote:

> Hello,


> Thanks, I have displayed the images which them was stored in a Oracle's 
> BLOB field, with:
> <dtml-call expr="RESPONSE.setHeader('content-type','image/jpeg')">
> <dtml-in SQLMethod_with_a_Only_Row>
> <dtml-var expr="BLOB_FIELD.read()">
> </dtml-in>
> However, I would like to resize this image. I can not do it with the 
> "height" and "width" attributes, because the image is obtained from a 
> Oracle's BLOB field, and no from image object (i.e.: I can not use 
> <dtml-var "ImageObject.tag(border='5', align='left')">).


> How can I do it ?

You have to set the height and width atributes of the tag you are 
generating for the browser to view the image. It is not the 
responsibility of the BLOB reading method to set the width and height 
atributes of the img tag.

        cheers, Leo

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to