[Zope-dev] Resize a image stored in a Oracle's BLOB Field

Juan Javier Carrera Obrero jcarrera@uco.es
Fri, 12 Nov 1999 13:40:36 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01BF2D13.7FF73840
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

Thanks, I have displayed the images which them was stored in a Oracle's =
BLOB field, with:

<dtml-call expr=3D"RESPONSE.setHeader('content-type','image/jpeg')">
<dtml-in SQLMethod_with_a_Only_Row>
<dtml-var expr=3D"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=3D'5', align=3D'left')">).

How can I do it ?

Thanks again !
=20

------=_NextPart_000_000D_01BF2D13.7FF73840
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks, I have displayed the images =
which them was=20
stored in a Oracle's BLOB field, with:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-call=20
expr=3D"RESPONSE.setHeader('content-type','image/jpeg')"&gt;<BR>&lt;dtml-=
in=20
SQLMethod_with_a_Only_Row&gt;<BR>&lt;dtml-var=20
expr=3D"BLOB_FIELD.read()"&gt;<BR>&lt;/dtml-in&gt;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>However, I would like to resize this =
image. I can=20
not do it with the "height" and "width" attributes, because the image is =

obtained from a Oracle's BLOB field, and no&nbsp;from image object =
(i.e.: I can=20
not use &lt;dtml-var "ImageObject.tag(border=3D'5',=20
align=3D'left')"&gt;).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>How can&nbsp;I&nbsp;do it =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_000D_01BF2D13.7FF73840--