wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How to avoid image caching in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to avoid image caching in Swing" Watch "How to avoid image caching in Swing" New topic
Author

How to avoid image caching in Swing

Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
I have an applet, which uses multiple images. Some of the images are loaded based on user actions. Applet makes http request and server loads images from file system (server hard disc) using ImageIcon and then converts to int array which gets added to the response.

On the client side image is reconstructed using Toolkit.createImage and displayed on the applet.

Problem I'm facing, even after image on the server is changed, applet does not show the updated image, even after applet is closed and reopened. How can I avoid caching of these images? � Thanks
[ June 27, 2007: Message edited by: Deb Sadhukhan ]

_ __ _ __ _ __ _<br />SCJP 1.4 (95%) | SCWCD 1.4 (79%)<br />Artificial intelligence is no match for natural stupidity.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to avoid image caching in Swing
 
Similar Threads
preloading images
Buffering in Java
image upload in applet from user's pc
jsp design question
How to stop caching problem in jsp