This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes I/O and Streams and the fly likes Application Client-Server and stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Application Client-Server and stream" Watch "Application Client-Server and stream" New topic
Author

Application Client-Server and stream

Michal Samos
Greenhorn

Joined: Nov 27, 2009
Posts: 4
Hi.
I wrote simple application Client-Server. If client connect to server, than server send image and Strings to client. If I send only Images, or only String everything is ok. But if I try send Image after String, second client that connect to server got following exception :
java.io.StreamCorruptedException: invalid type code: F8

First Client load all data correct, but secont not.

Below is Client and Server Code.

Server:


Client:



How to solved it?

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Application Client-Server and stream