开发者

.Net - How to write a Stream to a file in specified location

开发者 https://www.devze.com 2023-04-10 19:16 出处:网络
I am trying to download a zip file from an FTP location to a directory in the server harddisk. I am getting the zip file as a ReponseStream from the FTP location.

I am trying to download a zip file from an FTP location to a directory in the server harddisk.

I am getting the zip file as a ReponseStream from the FTP location.

How can i write this z开发者_运维知识库ip file to a specified directory. I can't say what the size of this file will be.

Thanks in advance.


Can you just use WebClient.DownloadFile("remote file", "local file")? It's so much simpler.

0

精彩评论

暂无评论...
验证码 换一张
取 消