Hi,
 Having a bit of problems having the image display with Lyla Captcha.

 It creates a jpg file, but it is completely blank.


-----application.cfm-----
<cfapplication Name="Test" SessionManagement ="yes"
SessionTimeOut="#CreateTimeSpan(0,0,30,0)#"
ApplicationTimeOut="#CreateTimeSpan(0,24,0,0)#"  ClientManagement="yes" >

<cfsetting enablecfoutputonly="yes">
<cfset application.captcha =
CreateObject("component","captchaService").init(configFile="captcha.xml")
/>
<cfset application.captcha.setup() />

<cfsetting enablecfoutputonly="no">
----------------------------------



------index.cfm------------
<cfset variables.captcha = application.captcha.createHashReference() />
<cfoutput>
<input type="hidden" name="captchaHash" value="#variables.captcha.hash#" />
<tr>
   <td colspan="2" align="right">
Captcha text: <input type="text" name="captchaText" size="6" />
   </td>
</tr>
   <td colspan="2" align="right">
<img src="showCaptcha.cfm?hashReference=#variables.captcha.hash#" />
   </td>
</tr>
</cfoutput>
----------------------------------


-------showCaptcha.cfm------------
<cfset variables.captcha =
application.captcha.createCaptchaFromHashReference("file",url.hashReference)
/>
<cfcontent type="image/jpg" file="#variables.captcha.fileLocation#"
deletefile="true" reset="false" />
----------------------------------------------



Any suggestions ??

 Thx.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253951
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to