Are you resizing the image dynamically? Or are you actually resizing it and
then saving it over the old one? If you create an instance of these Java
objects based on an image of a given size, and then you change the image
size, the Java object has no idea that this happened. If you want the new
image's size, you'd have to call getImage() again and pass in the path to
the new image.

Maybe it would help if you explain exactly what you are doing as far as the
resizing goes.

On 9/5/07, Robert Harrison <[EMAIL PROTECTED]> wrote:
>
> > Did you try my suggestion to re-run the constructor?
>
> Yes. That did not clear the cached data. I tried to init the entire
> structure but I don't really know the actual name of the img object CF is
> creating. I'm naming it "img", but CF is probably appending some longer
> name
> that has img as part of it.
>
> Wherever these are being cached they not in any of the CF variables I can
> find... although strangely enough they are clearing at the purge interval
> set in the CF administrator.
>
>
> 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 &.
>
> -----Original Message-----
> From: Brian Kotek [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 05, 2007 2:10 PM
> To: CF-Talk
> Subject: Re: Clear Object Variables
>
> Did you try my suggestion to re-run the constructor?
>
> On 9/5/07, Robert Harrison <[EMAIL PROTECTED]> wrote:
> >
> > The code below is caching the results for each file. They stay
> persistent
> > until server reboot. I need to clear them on demand and have tried
> > everything to find them. I've dumped all the client, session,
> application,
> > and server variables. Cannot find them there.
> >
> >
> > Where are these being cached? If I can find them I should be able to
> clear
> > them.
> >
> >
> >
> > <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>
> >
> >
> > Thanks
> >
> > Robert
> >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to