<!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>
I have a question regarding zope with Postgres. I am storing
images in a postgres database using OID's and Bytea's. I have been
trying extensively to get these images to display through a zope dtml
page, but cannot for the life of me. I tried this but it won't show
the image.<br>
<br>
<b>dtml method called query image:</b><br>
<dtml-call "RESPONSE.setHeader('Content-type', 'image/jpg')"><br>
<dtml-return "sql_get_image_oid(userid='1006')"> <br>
<br>
<b>another dtml method that should display the image:</b><br>
<img
src="/Examples/Ty/image_testing/query_image"></img><br>
<br>
I tried this with both data types, oid and bytea but I get no results.
If anyone could help me, that would be great. Thanks for your time<br>
Sincerely, <br>
Tyson Wenger
</body>
</html>