I have created a socket programming for server client communication. I am reading data using read(byte[]) of DataInputStream Also writing data using write(byte[]) of DataOutputStream.
Whenver I am sending small amount of data my program works fine. But If I send a data of 20000 characters and send it 10 times then i am able to recieve the data 8 times perfectly but not the 2 times.
SO can I reliably send and receieve data using read and write in socket programming.
Thanks Bapi