Answer the question
In order to leave comments, you need to log in
Why does the file not reach (Socket)?
I'm trying to send a file via socket in python, but the file doesn't reach completely.
Sender:
f=open("png.png", "rb")
client_socket.send(f.read())
data = conn.recv(1024)
n=open("scr.png", "wb")
n.write(data)
n.close()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question