That depends on wether you are writing the client or the server software.
For clients, you can use WebClient.DownloadFile, on the server you can use
Response.TransmitFile or Response.Write after specifying the proper header.
Give more context to your question, what are these client and server?
If server is a http server then WebClient.DownloadFile(...);
if ftp server then FtpWebRequest/FtpWebResponse
if its a custom server then you can use network sockets to copy data.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.