.Net - How to write a Stream to a file in specified 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.
精彩评论