• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Client-Server and stream

 
Michal Samos
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic