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...