DataInputStream not receiving all the bytes
843790Jul 2 2010 — edited Jul 3 2010Hi all,
I am new to this forum and to JAVA.
When i use DataInputStream to receive a file(of non standard format) through sockets i am not able to receive all the data.
And even reading a byte by byte while(data = -1) fos.write(data = in.read()); takes a lot of time.
Any solution for this?I also tried readFully but that never returns:(.
Hi please help me.
Thanks in advance