I am using PHPLib templates for my site. I have a table that stores the binary data for images.
Without using PHPLib, I can retrieve the data into $data, then send the appropriate header() for jpg, then echo $date. Using this format, I can use "img src='showimage.php?id=1'" in my html and it works fine.
How do I do the same thing with PHPLib templates? I'm used to grabbing a filename from the database and using $tpl->set_var to assign that to a template. How do I get my binary data into the template?
It's probably something obvious that I'm missing.