String url = "https://api.weixin.qq.com/cgi-bin/media/get?access_token= Cnaamfvhpb1vmcvrxradijrx3eufsk1srvrboapkr-8gbli4xje22si9ulaf3q_aciesyutz7kc4wvokn9xquxwchviw5yqmdjxojm-mmhe &MEDIA_ID=WCRGXYBC_COTFNILFPTIPZNZS8N4GGHSPAP561QKY1S2AWYZXGPAD6DEKWGCRHJK ";
String url = "http://mmbiz.qpic.cn/mmbiz/ Pwilo51l7wufyofwaxfqpnetwcibjnacit6ydn7vw8leiwt7ijyg3eeribmk4rhibecvnkiat2qejriwxlukypiaqtq/0 ";
string path = @ "D:\5555555555555555555555555.jpg";
string file = String. Empty;
String content = String. Empty;
String strpath = String. Empty;
String Savepath = String. Empty;
HttpWebRequest req = (HttpWebRequest) httpwebrequest.create (URL);
Req. Method = "GET";
using (WebResponse WR = req. GetResponse ())
{
HttpWebResponse myresponse = (httpwebresponse) req. GetResponse ();
strpath = MyResponse.ResponseUri.ToString ();
WebClient mywebclient = new WebClient ();
Savepath = Server.MapPath ("Images") + "\ \" + DateTime.Now.ToString ("yyyymmddhhmmssfff") + (new Random ()). Next (). ToString (). Substring (0, 4) + ". jpg";
Try
{
Mywebclient. DownloadFile (strpath, Savepath);
File = Savepath;
}
catch (Exception ex)
{
Savepath = ex. ToString ();
}
}
return file;
WebClient WebClient = new WebClient ();
Mywebclient.downloadfile (Mystringwebresource,filename);
Webclient.downloadfile (Address, "d::\\deeeeeeeeeeeeedd.png");
Fcity.Core.FileSources.ChangeImageSize ("D:\\qq20141205121451.png", "d:\\ddd.png", +, +, imageformat.jpeg);
Return
Download a picture of the URL address