posted 15 years ago
Hello,
I am uploading files to a server via a socket connection. I create a multipart/form-data upload, sending the required headers, file size.
The upload functions as expected however at the end of the upload I create a reader to fetch a response. This reader hangs for a minute or more
then returns the expected value. Is there something I need to send the server to tell it that I am done and I want the response.
Thanks!
BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));;
while( (strLine = br.readLine()) != null ) {
strResponse+=strLine.trim();
}