Introduction - If you have any usage issues, please Google them yourself
Using TCP protocol to connect the two sides, the establishment of server-side file stream to send the file to be read into the listening state, the client send the signal to start transmission, the server in accordance with the client to send the current file position by receiving streaming buffer size of a piece sent to the client client to accept a document and then save it to the receiving stream, until the end to send the entire document flow, where the use of server-side TIdTCPServer components, corresponding to the use of client-side components TIdTCPClient.