/ Published in: ColdFusion
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
This takes an image that was created, shows it and deletes it. This is good for captcha images since you dont want to keep them arround after they are created. ------------------------- <img src="/blog/serveCaptcha.cfm?captchaImage=<cfoutput>#captcha.image#</cfoutput>" border=1> ------------------------- This page feeds back the image and deletes it after <cfparam name="captchaImage"> <cfcontent deletefile="yes" file="#application.blogcfm.captchaImageRoot##application.blogcfm.dirsep##captchaImage#" type="image/x-png">