I am working on resizing an image using Java objects in a cfscript block.
everything is woking fine until the following line:
g.drawImage(imgTemp,0,0);

where i get this error message:

The selected method drawImage was not found.
Either there are no methods with the specified method name and argument types,
or the method drawImage is overloaded with arguments types that ColdFusion
can't decipher reliably. If this is a Java object and you verified that the
method exists, you may need to use the javacast function to reduce ambiguity.

We are using CF MX 6. I have tried everything i could think of but can not get
CF to like this method call. I am unable to find the solution to this, any help
that anyone can give is appreciated.