Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to send a big file by sockets
Posted
Comments
Sergey Alexandrovich Kryukov 5-May-15 21:39pm    
What have you tried so far?
—SA

Considering to total lack of any information in your "question" at all, this[^] is about the best answer you're going to get.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 5-May-15 21:36pm    
Fair enough, a 5.
I have my own answer, Solution 2.
—SA
Use FTP instead of breaking through the open door.

However, using pure sockets with TCP protocol is not a problem, too. You have to design a simple application-layer protocol instead of FTP, which can actually be simpler than FTP. As TCP is session-oriented, you can easily break the big file into smaller chunks and transmit them one by one. I don't want to give you more detail, just because you never mentioned what have you tried so far and did not explain what you problem is. If you ask more specific question, you may get a chance to get some more help.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900