Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须从实时 URL 下载图像并保存到实时服务器。
您可以使用 WebClient 并下载和存储图像,非常简单:
WebClient wc = new WebClient; wc.DownloadFile("http://www.site.com/image.jpg", Server.MapPath("~\images\image.jpg"));
当然,您必须设置可从您的网络应用程序写入的图像目录