I'm doing a little chat with sockets in python, I'm trying to make it possible to send files through the chat, I thought about this to send the file:
file = open("file.txt", "rb")
content = file.readlines(1024)
sock.send(content)
file.close()...
asked by
10.08.2018 / 02:33