Results 1 to 1 of 1
- 11-13-2009, 03:18 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 1
- Rep Power
- 0
Getting images with getImage () when the connection resets
Hello I am new to the forum, I have a problem with the getImage () from java.
Usually it works correctly but when you reset the connection stops working.
I compare with getImageLoadStatus () to see if I brought the image correctly, but after
I reset the connection always throws the status code in error.
Here's the part that brings the image:
My question is whether there is a way to bring the imageJava Code:ImageIcon ImageIcon = new ImageIcon (getImage (getDocumentBase (), name)); while (imageicon.getImageLoadStatus ()! = MediaTracker.COMPLETE & &! (imageicon.getImageLoadStatus () == MediaTracker.ERRORED)) ( imageicon.setImageObserver (this); Thread.sleep (37); ) if (imageicon.getImageLoadStatus () == MediaTracker.ERRORED) ( System.out.println ( "Error with image name:" + name); return null; ) Else ( / / System.out.println ( "Dwonloaded" + name); )
after the connection is reset.
greetings
Similar Threads
-
we implement connection pooling ourselves, but why it always out of connection ?
By zengqingyi12 in forum JDBCReplies: 7Last Post: 10-20-2009, 10:34 AM -
getImage - not fail when image doesn't exist
By leonid.ge in forum Java AppletsReplies: 0Last Post: 07-24-2009, 03:17 PM -
problem in socket connection in sending images
By vibhor in forum NetworkingReplies: 2Last Post: 02-20-2009, 05:39 AM -
images
By amith in forum AWT / SwingReplies: 1Last Post: 05-20-2008, 10:54 AM -
Help with images...
By toby in forum Java AppletsReplies: 1Last Post: 08-04-2007, 05:25 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks