You could try using CreateObject() to create the Java object, then call
init() (the Java constructor) before each use, which I would think should
clear the instance variables. Not sure though, that's just an idea.

On 9/5/07, Robert Harrison <[EMAIL PROTECTED]> wrote:
>
> I'm using the code below to get image height and width. It works the first
> time I use it to get the image size for a particular file, but after I've
> used it on an image the sizes are cached somewhere. If I change the image
> size the old sizes from the first read still show. How do I clear these?
>
>
>
>
>
>
>
> <cfobject type="JAVA" action="Create" name="tk"
> class="java.awt.Toolkit"></cfobject>
>
> <cfobject type="JAVA" action="Create" name="img"
> class="java.awt.Image"></cfobject>
>
> <cfscript>
>
> img =
> tk.getDefaultToolkit
> ().getImage("#rootpath#\assets\banners\#gif_files.name#"
> );
>
> width = img.getWidth();
>
> height = img.getHeight();
>
> img.flush();
>
> </cfscript>
>
>
>
>
>
> Robert B. Harrison
> Director of Interactive services
> Austin & Williams
> 125 Kennedy Drive, Suite 100 Hauppauge NY 11788
> T : 631.231.6600 Ext. 119
>
> F : 631.434.7022
> www.austin-williams.com
>
> Great advertising can't be either/or... It must be &.
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287813
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to