So adding the Javacast method is the only change. That's easy enough. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//--------->
-----Original Message----- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 12:07 PM To: CF-Talk Subject: Re: Problem with watermarking image with Image.cfc 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:263316 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

