[Zope] zope image in postgres ?
Tyson
Twenger26 at aol.com
Sat Jul 24 11:19:33 EDT 2004
Hi,
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.
dtml method called query image:
<dtml-call "RESPONSE.setHeader('Content-type', 'image/jpg')">
<dtml-return "sql_get_image_oid(userid='1006')">
another dtml method that should display the image:
<img src="/Examples/Ty/image_testing/query_image"></img>
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
Sincerely,
Tyson Wenger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040724/195628e4/attachment.htm
More information about the Zope
mailing list