Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unreported exception java.io.ioexception; must be caught or declared to be

843789Mar 23 2009 — edited Mar 24 2009
String fileName = new String();
while(inStream.readLine()!=null)
try
{
fileName = inStream.readLine();
}
catch(Exception exc)
{
System.out.println("Error in receiving order total - " + exc.toString());
}

image = getImage(getCodeBase(),fileName);
It supposed t be like this..server send image, client display it, based on the image, client gives respond, then based on the client's respond, server send image. i need to put "while" to make it happen, because the next image sent by server just cant show up. but when i put "while" it gives that error. please help...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2009
Added on Mar 23 2009
11 comments
1,160 views