posted 21 years ago
hi,
The exception clearly says that the socket is getting closed, it could be because you are closing the socket at the receiving end before reading the entire file.
For instance, you assume that you are writing about 1000 bytes of data into the socket. In the receiving end you might be closing the socket connection before reading 1000 bytes (0-999 bytes).
To prevent, either use readfully() method of the input stream to read the data from the socket or loop till the method read() of input stream returns -1.
Hope this helps
---------------
Vijay.
Thanks,<p>Vijay<p>The Hand that gives, Gathers.