且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何下载使用URL与查询字符串,而不是图像路径的图像?

更新时间:2023-11-07 21:02:22

你应该能够做到这一点是这样的:使用(Web客户端的客户端=新的WebClient())

You should be able to do it like this:

using (WebClient Client = new WebClient ())
{
    Client.DownloadFile("http://www.mywebsite.com/img.aspx?imgid=12345", "12345.jpg");
}