@@ -0,0 +1,1468 @@
+import java.io.*;%0D%0Aimport java.net.*;%0D%0A%0D%0Aclass SampleClient %7B%0D%0A    public static void main(String%5B%5D args) %7B%0D%0A        SampleClient c = new SampleClient();%0D%0A        c.sendFileGetResult(new File(%22C:%5C%5CUsers%5C%5CWill%5C%5CDesktop%5C%5Caaa.PNG%22), %22192.168.0.102%22, 4242, 2);%0D%0A    %7D%0D%0A%0D%0A%0D%0A    private String sendFileGetResult(File file, String url, int port, int secTimeout) %7B%0D%0A        Socket s = new Socket();%0D%0A        String res = %22%22;%0D%0A%0D%0A        try %7B%0D%0A            s.connect(new InetSocketAddress(url, port), secTimeout * 1000);%0D%0A            DataOutputStream dos = new DataOutputStream(s.getOutputStream());%0D%0A            FileInputStream fis = new FileInputStream(file);%0D%0A            byte %5B%5D sendBytes = new byte%5B1024 * 4%5D;%0D%0A            int len = 0;%0D%0A%0D%0A            while ((len = fis.read(sendBytes, 0, sendBytes.length)) %3E 0) %7B%0D%0A                dos.write(sendBytes, 0, len);%0D%0A                dos.flush();%0D%0A            %7D%0D%0A            s.shutdownOutput();%0D%0A%0D%0A            //get result%0D%0A            InputStream in = s.getInputStream();%0D%0A            byte%5B%5D result = new byte%5B1024%5D;%0D%0A            int num = in.read(result);%0D%0A            %0D%0A            res = new String(result, 0, num);%0D%0A            System.out.println(res);%0D%0A%0D%0A            //closing resources%0D%0A            s.close();%0D%0A            dos.close();%0D%0A            fis.close();%0D%0A            in.close();%0D%0A        %7D catch (IOException e) %7B%0D%0A            e.printStackTrace();%0D%0A        %7D finally%7B%0D%0A            return res;%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

Add simple client code