3 Replies Latest reply on May 21, 2013 11:29 AM by WolfShade

    ImageScaletoFit Issue

    PopcornCoder Level 1

      <tr><cfoutput query="myDirectory" maxrows="1">

      <td align="center"><a href="#Name#">

      <cfimage source="#Name#" name="Name1">

      <cfset ImageScaleToFit(Name,200,"")><!---  ---><img src="#Name#" /><br />#Name#</a></td>

      <cfif myDirectory.currentRow MOD 3 EQ 0>




      Whenever I try the code above I get the following error "

      Unable to cast an object of type java.lang.String to Image.




      How can I use this tag and resize images that are stored in the variable Name and get them to display correctly?  HELP!