cfimage

Using cfimage to display a file that doesn't have an extension

随声附和 提交于 2020-01-06 01:44:29
问题 curious one this. I'm working on a process that generates PDF files, combining data from various sources. The last piece of this process I need to complete is merging in image files. This is actually fairly straightforward but the problem I have is the image files aren't stored with file extensions. Locally, I can change the filename, but in production this isn't an option. So because a filename looks like : B71637CB-A49C-0653-EF813918736BDEB7 This will not work: <cfimage action=

cfimage from binary in cfdocument

泪湿孤枕 提交于 2019-12-11 08:56:08
问题 I am writing a PDF dynamically, and am creating a QR code on the document for eTicketing purposes i set my cfdocument localurl=yes to include a different image, which works fine, but since I am using an API call to get the binary for the qrCode, the using cfimage to display the image, it is only showing a red X <cfdocument format="PDF" overwrite="Yes" localUrl="yes" pageType = "letter"> <body> <cfoutput> <section id="header"> <img src="file:///#ExpandPath('images/header.png')#"/> <cfimage

Coldfusion CFDOCUMENT creates a red X

你。 提交于 2019-12-11 06:38:24
问题 I have an issue with a server to server call with ColdFusion. Suppose I have two servers, each with a file: www.Content.com/webpage.cfm www.Badge.com/badge.jpg My source code looks like this: <cfdocument format="pdf" pagewidth="11" pageheight="8.5"> This is a simple PDF that was created to show issues with content generation on the server. This PDF uses an http:// reference to the badge server to show an image of a badged team member. <BR /> <BR /> <img src="https://www.badge.com/badge.jpg" /