This is a known issue that I should take care of in the next release of
image.cfc, but there's an easy workaround.
coldfusion numeric variables are *NOT* integers. Java objects, being
strongly typed, require certain types for their methods - an integer, in
this case.
To workaround this issue, anytime you pass a coldfusion variable to an
image.cfc method, you may have to use javacast() on it.
Ie, change:
<cfset APPLICATION.imgObj.watermark("", "",
"#serverpath#tmp_#CFFILE.serverfile#", "#largewatermark#", 1, 0, pos,
"#serverpath#lg_#CFFILE.serverfile#",100)>
to this:
<cfset APPLICATION.imgObj.watermark("", "",
"#serverpath#tmp_#CFFILE.serverfile#", "#largewatermark#", 1, 0,
javacast("int",pos),
"#serverpath#lg_#CFFILE.serverfile#",100)>
Notice the javacast("int",pos)
Rick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4