Posted By

ChrisCantley on 06/29/10


img cfparam namecaptchaImage cfcontent deletefileyes fileapplicationblogcfmcaptchaImageRootapplicationblogcfmdirsepca typeimagex-png srcblogserveCaptchacfmcaptchaImagecfoutputcaptchaimagecfoutput border1

Versions (?)

Serve Create image through IMG

 / Published in: ColdFusion

  1. 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.
  3. -------------------------
  4. <img src="/blog/serveCaptcha.cfm?captchaImage=<cfoutput>#captcha.image#</cfoutput>" border=1>
  6. -------------------------
  7. This page feeds back the image and deletes it after
  9. <cfparam name="captchaImage">
  10. <cfcontent deletefile="yes" file="#application.blogcfm.captchaImageRoot##application.blogcfm.dirsep##captchaImage#" type="image/x-png">

Report this snippet  

You need to login to post a comment.