21 Nov
2002
21 Nov
'02
4:20 p.m.
working4aliving wrote:
Hi, I've been working on this for a little, and am stuck... I'm a newbie with zope. I have a python script that calls a zsql method (mysql), and DOES display the image correctly.
When I type the url directly into the browser, and insert my id variable for the record, it'll work from the browser, but I can't get it to work through dtml. It will only display the "machine code".
Hi, you have to set the correct HTTP-Header when you want to server your image from a DTML-Method. something like this should do it: ~~~ Content-type: image/gif <dtml-var yourImageScriptWhichGivesYouTheMachineCode> ~~~ -mj -- German Zope User Group http://www.dzug.org/