Skip to content Skip to sidebar Skip to footer

Android Sending Image Over Socket Fails: "client.getoutputstream()" Does Not Work

I can't get this code to work, in particular, the instruction 'outputStream = client.getOutputStream();' does not seem to work and I can't figure out why. Any help will be much app

Solution 1:

java.net.SocketException: Socket is closed

means that you closed the socket and then continued to use it.

Possibly you are unaware that closing the input stream or output stream of a socket closes the other stream and the socket.

Post a Comment for "Android Sending Image Over Socket Fails: "client.getoutputstream()" Does Not Work"