Glad you got it sorted. If you want the standalone funcimage.cfm script to work, its contents will need to be something like this: <cfsetting enablecfoutputonly="true" showdebugoutput="false"> <cfscript> alphaNum = ['6','F','@','G','H','J','K','L','M','N','P','Q','R','S','T','B','U','V','W','X','$','Y','5','2','Z','a','b','?','c','d','D','8','e','f','g','h','A','j','k','m','n','o','p','q','7','r','9','s','&','E','4','t','u','v','w','x','3','y','C','z']; anLen = alphaNum.len(); lock timeout="30" scope="Session" type="exclusive" { session.captchaText = ""; for ( idx=1; idx < 7; idx++) { session.captchaText &= alphaNum[RandRange(1,anLen,"SHA1PRNG")]; } funcimg = ImageCreateCaptcha(85,250,session.captchaText,"medium","serif", "30"); } imageWrite(funcimg, "ram:///tmp.png"); funcimgOutput = fileReadBinary("ram:///tmp.png"); </cfscript> <cfheader name="content-disposition" value="inline; filename=captchaimage.png" /> <cfcontent type="image/png" variable="#funcimgoutput#" /> This is a working example.
... View more