I can sent small data using java nio.
But If I want to send a very large data then my socket channel did not work fine.
message = "very large data"+"\n";
ByteBuffer buf = ByteBuffer.wrap(message.getBytes());
int nbytes = channel.write(buf);
all the data is sent.
I want to read data from server so i am using BufferedInputStreaReader.readLine(); In this case I am not getting any error also i cannot retrieve any of the data that i have sent
Thanks Deepak