Reputation: 2757
Can someone give me a brief idea on how to transfer large files over the internet?
I tried with sockets, but it does not work. I am not sure what the size of receiving sockets should be. I tried with 1024 bytes. I send the data from one end and keep receiving it at the other end.
Is there any other way apart from sockets, I can use in Python?
Upvotes: 0
Views: 1631
Reputation: 503
I encountered the same problem, and i solved it by chopping the file up and then sending the parts separately (load the file, send file[0:512], then send file[512:1024] and so on. Before sending the file i sent the length of the file to the receiver so the it would know when its done.
I know this probably isn't the best way to do this, but i hope it will help you.
Upvotes: 1