Sven Syld writes:
I have gained access to a employees' database which among other stuff contains employees' photos (that is, in binary form). I'm trying to display employees with their names and photos etc.
To this moment I have figured out only one solution (which does not work).
HTML page looks like this: <dtml-in sql_employees> <dtml-var first_name> <dtml-var last_name> <img src="his_or_her_photo"> (which is DTML method) But it is not called!
What about: <dtml-var photo>
DTML method his_or_her_photo: <dtml-call "RESPONSE.setHeader('Content-Type','image/gif')"> (just in case, but this apparently has no effect) This is a really bad idea! Remember "RESPONSE" is global for the complete request. The "Content-Type" header described the content type of the complete response and not from the image... <dtml-var photo>
Dieter