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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -