what you could do here is to provide a page on your site that would return the image as if it was a direct request. So that page would take a ID (to look up the database) and then load it and send it out using CFCONTENT.

This will then let the CFDOCUMENT do its thang

Matt C wrote:
Hi there. I'm pulling images from a MySQL database (type longblob) and displaying them on the page with...

    <cfset imgObj = ImageNew(myQry.pic) />
    <cfset picSrc = ToDataURI(imgObj, 'image/jpg') />
    <img src="#picSrc#" style="width:80px;" />

When I attempt to save the page as a PDF using cfdocument, the images do not show up. The only thing I could find with a Google search about cfdocument images not showing is that permissions require me to use the file: protocol instead of http(s) in the path. But what (if anything) can I do about database images?


--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en

Reply via email to