我如何progromatically保存图像从一个网址?我使用C#和需要能够从一个网址能够抓取图像并存储在本地。 ......不,我不偷:)
How do I progromatically save an image from a URL? I am using C# and need to be able grab images from a URL and store them locally. ...and no, I am not stealing :)
这将是更容易写是这样的:
It would be easier to write something like this:
WebClient webClient = new WebClient();
webClient.DownloadFile(remoteFileUrl, localFileName);