Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-13-2009, 04:18 PM
Member
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0
fracedo is on a distinguished road
Default 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:
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);
)
My question is whether there is a way to bring the image
after the connection is reset.

greetings
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Tags
getimage connection reset

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
we implement connection pooling ourselves, but why it always out of connection ? zengqingyi12 Database 7 10-20-2009 11:34 AM
getImage - not fail when image doesn't exist leonid.ge Java Applets 0 07-24-2009 04:17 PM
problem in socket connection in sending images vibhor Networking 2 02-20-2009 06:39 AM
images amith AWT / Swing 1 05-20-2008 11:54 AM
Help with images... toby Java Applets 1 08-04-2007 06:25 AM


All times are GMT +2. The time now is 05:16 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org