I'm streaming images from outside the web root, using cfcontent. While the images are displayed correctly when the various pages are called directly in the browser, the images show a red X inside the generated pdf. On the export page:
<cfsavecontent variable = "gridCode">
<cfinclude template="pathToGeneratedPage.cfm" >
</cfsavecontent>
<cfdocument format="pdf" filename="#filename#" overwrite="yes" localUrl="yes">
<cfdocumentsection >
<cfoutput>#gridCode#</cfoutput>
</cfdocumentsection>
</cfdocument>
On the page with the content to be generated:
<img src="pathToDisplayPhoto.cfm?image=#someImage#" />
On the displayPhoto.cfm page:
<cfcontent type="image/*" file="#pathToUploadFolderOutsideWebRoot##url.image#" deleteFile = "No">
I included the cfdocument attribute localUrl="yes" because the default (no) was not working. Setting explicitly to "no" doesn't work either.
Any suggestions?