<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I have a question regarding zope with Postgres.&nbsp; I am storing
images in a postgres database using OID's and Bytea's.&nbsp;&nbsp; I have been
trying extensively to get these images to display through a zope dtml
page, but cannot for the life of me.&nbsp;&nbsp; I tried this but it won't show
the image.<br>
<br>
<b>dtml method called query image:</b><br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-call "RESPONSE.setHeader('Content-type', 'image/jpg')"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-return "sql_get_image_oid(userid='1006')"&gt; <br>
<br>
<b>another dtml method that should display the image:</b><br>
&nbsp;&nbsp;&nbsp;&nbsp; &lt;img
src="/Examples/Ty/image_testing/query_image"&gt;&lt;/img&gt;<br>
<br>
I tried this with both data types, oid and bytea but I get no results.&nbsp;
If anyone could help me, that would be great.&nbsp; Thanks for your time<br>
&nbsp;&nbsp;&nbsp;&nbsp; Sincerely, <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tyson Wenger
</body>
</html>