I am having issues with pictures over python sockets. The image is not being sent out not fully. This is how it gets received
The client
elif data == 'screenshot':
screen = os.system("screencapture screen.jpg")
file = open('screen.jpg', 'rb')
prop = file.read()
file.close()
s.sendall( prop )
The server
data = c.recv(999999999)
img = open('image.jpg', 'wb')
img.write( data )
What is happening is the original file is say 800 kb and then the data written is 300kb. Is there a way of getting the full image to show up and not half or 20% of the image.