posted 14 years ago
Hello all,
A project that I'm working on needs to pass 3 text files from the Server to the Client.
This what I'm doing
Server side :Wait for client, once connected to client pick up the files and transmit it to the client one after another.
Client side :Connect to server and accept the files one after an other.
I'm only able to receive the first txt file after which I'm getting an ArrayIndexOutOfBoundsException.
In debug mode I noticed that no data is being read on the second read segment on the client side.
Here is a segment of the server side code:
This is the client side code :
Any help on how to synchronize the file sending so the client reads all three files is much appreciated
-Nathan
"A single conversation with a wise man is better than ten years of study."