Image Error
All of a sudden we get this error message:
The code worked for several months
| javax.imageio.IIOException: Can't get input stream from URL! |
WE now added a CFTRY just to keep the page working
<cfif XeePV GT 9999>
<cfset leftaln = 22>
<cfelseif XeePV GT 999>
<cfset leftaln = 36>
<cfelseif XeePV GT 99>
<cfset leftaln = 43>
<cfelseif XeePV GT 9>
<cfset leftaln = 48>
<cfelse>
<cfset leftaln = 51>
</cfif>
<!--- Create the XeeScore Button on the fly --->
<cftry>
<cfset myImg = ImageNew("http://xeeme.com/_/assets/images/XeePV-Button.png")>
<cfset attr=StructNew()>
<cfset attr.font="Arial">
<cfset attr.size = "50">
<cfset attr.style = "bold">
<cfset ImageDrawText(myImg, "#NumberFormat(XeePV, "_,___")#", #leftaln# ,100,attr) />
<center>
<a class="helpbox" href="##ddXeePV" border="0"><cfimage action="writeToBrowser" source="#myImg#" border="0"></a>
<cfimage source="#myImg#" action="write" destination="#APPLICATION.BaseDir#\_\Data\XeeScore\#session.auth.usr_ID#.png" overwrite="yes">
</center>
<cfcatch></cfcatch>
</cftry>
I just can't figure out what the issue is.
The image is there and always have been:
http://xeeme.com/_/assets/images/XeePV-Button.png
Thanks for any tip
Rob
