Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DataInputStream not receiving all the bytes

843790Jul 2 2010 — edited Jul 3 2010
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 31 2010
Added on Jul 2 2010
3 comments
129 views