Large File Transfer using TCP Socket in Python3 | Socket Programming in Python

preview_player
Показать описание
In this video, we will build a simple client-server file transfer program using a TCP socket in the python3 programming language. Here, we will learn how to transfer a large file to a network using a TCP socket. In this program, the client is going to send a large text file to the server and the server is going to receive that data and saves it back to a file.

Join this channel to get access to the perks:

FOLLOW ME:
Рекомендации по теме
Комментарии
Автор

Thanks to your tutorial I am now able to make auto backups of my python scripts. Thanks a lot !

geraldleuven
Автор

i found first ever programmer which is stutering as me, i think that only i was actually learn coding and stutering ! i wish u good look very good video bro

alexchoriy
Автор

Nice one. Thank you very much :)
To also send binary files like images, video etc, do the following:

in the server change:
with open(f"recv_{FILENAME}", "w") as f:
to
with open(f"recv_{FILENAME}", "wb") as f:
and
data =
to
data = conn.recv(SIZE)

in the client change
with open(FILENAME, "r") as f:
to
with open(FILENAME, "rb") as f:
and

to
client.send(data)

So you can send and receive every file in binary

globomirando
Автор

Can you please create a video to show how to share a machine learning model via sockets?

winityodude
join shbcf.ru