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

Matthew T. Kromer matt@zope.com
Tue, 27 Nov 2001 10:27:29 -0500


--Apple-Mail-1-650362539
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed

I'm not really sure when this was asked ( I dont think it was '99) :)

The <img> tag is in the containing document, not the actual method which=20=

returns the image...  Somewhere else you have an <img=20
src=3D"myZopeUrlWhichReturnsAnImage"> which is where you slap the height=20=

and width tags.


On Friday, November 12, 1999, at 07:40 AM, Juan Javier Carrera Obrero=20
wrote:

> Hello,
> =A0
> Thanks, I have displayed the images which them was stored in a =
Oracle's=20
> BLOB field, with:
> =A0
> <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=20=

> "height" and "width" attributes, because the image is obtained from a=20=

> Oracle's BLOB field, and no=A0from image object (i.e.: I can not use=20=

> <dtml-var "ImageObject.tag(border=3D'5', align=3D'left')">).
> =A0
> How can=A0I=A0do it ?
> =A0
> Thanks again !
> =A0

--Apple-Mail-1-650362539
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

I'm not really sure when this was asked ( I dont think it was '99) :)


The <<img> tag is in the containing document, not the actual method
which returns the image...  Somewhere else you have an <<img
src=3D"myZopeUrlWhichReturnsAnImage"> which is where you slap the height
and width tags.



On Friday, November 12, 1999, at 07:40 AM, Juan Javier Carrera Obrero
wrote:


=
<excerpt><fontfamily><param>Arial</param><smaller>Hello,</smaller></fontfa=
mily>

=A0

<fontfamily><param>Arial</param><smaller>Thanks, I have displayed the
images which them was stored in a Oracle's BLOB field, =
with:</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller><<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=A0from image object (i.e.: I can not use
<<dtml-var "ImageObject.tag(border=3D'5', =
align=3D'left')">).</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>How can=A0I=A0do it =
?</smaller></fontfamily>

=A0

<fontfamily><param>Arial</param><smaller>Thanks again =
!</smaller></fontfamily>

<fontfamily><param>Arial</param><smaller>=A0</smaller></fontfamily>

</excerpt>=

--Apple-Mail-1-650362539--