--- /dev/null
+import socket # Import socket module
+import time
+
+s = socket.socket() # Create a socket object
+host = "192.168.0.106" #Ip address that the TCPServer is there
+port = 50000 # Reserve a port for your service every new transfer wants a new port or you must wait.
+
+
+t = time.time()
+s.connect((host, port))
+
+filename="lena2.jpg"
+f = open(filename,'rb')
+l = f.read(1024)
+while (l):
+ s.send(l)
+ l = f.read(1024)
+f.close()
+
+
+s.close()
+
+
+
+elapsed_time = time.time() - t
+
+print("time pil",elapsed_time)
+
+print('Successfully get the file')
+
+print('connection closed')