java - Android to Windows Socket File Transfer Through Browser -
i trying transfer file android device windows pc. ip , port used browser. want send file in way browser show user save file prompt. current code using this:
socket socket = new socket(ip, port); socket.setsotimeout(1000*10); outputstreamwriter writer = new outputstreamwriter(socket.getoutputstream()); writer.write("hello world!"); writer.flush(); writer.close(); socket.close();
i connectionexception
(timeout).
of course, open suggestions ways make possible, or easier.
thanks lot in advance!
Comments
Post a Comment