[英]Copying files from one server to another through a .NET Windows application on my local machine
I have a Windows application built in C#, .NET 3.5.我在 C#、.NET 3.5 中有一个 Windows 应用程序。 One of its functionalities is to copy files from ServerA to ServerB.它的功能之一是将文件从 ServerA 复制到 ServerB。 The application will be run on a client machine, ClientX.该应用程序将在客户端计算机 ClientX 上运行。
What is the most efficient command/way to do this in C# so that the files are not temporarily buffered in the ClientX machine by the application?在 C# 中执行此操作的最有效命令/方法是什么,以便应用程序不会在 ClientX 机器中临时缓冲文件?
So the flow of the files should look like:所以文件流应该是这样的:
ServerA ----> ServerB
and NOT like:不喜欢:
ServerA ----> ClientX (temporarily buffered internally by .NET) ----> ServerB
One possibility would be to use the File eXchange Protocol which uses FTP to do a direct transfer from one server to another without the file ever visiting the client.一种可能性是使用文件交换协议,该协议使用 FTP 从一台服务器直接传输到另一台服务器,而无需文件访问客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.