My client can send Images normally to server, but when it comes to text files they arrive empty. Any ideas what am I doing wrong? I\'d really appreciate help, because I have
BufferedReader
on server side before reading all the data. This essentially closes the connection.Reader
or Writer
for non-character streams like binary image data. And you should not mix BufferedReader
with any other stream wrapper for the same stream since it may read as many data as it fills in buffer.