Send and receive files from java socket programing
Sender :
1. Create a Scoket connection
ServerSocket servsock = new ServerSocket(13267);
2. Checks for the socket acceptence from socket client
Socket sock = servsock.accept();
3. Stream the file and output the stream
Receiver :
1. Create socket with sender ip address and port
Socket sock = new Socket("192.168.2.22",13267);
2. Get the stream from the socket .
InputStream is = sock.getInputStream();
Source Code
hey buddy great work.
ReplyDeletei can't reach your source code. i think it is deleted or something, can you please upload the source code.
thank you