如何通过程序把图片http://kh.google.com/kh?v=8&t=trstqtqtqtrtttt保存在本机?WebClient的DownloadFile好像不行?string strImageLocation = "http://kh.google.com/kh?v=8&t=trstqtqtqtrtttt";
wb.DownloadFile(strImageLocation,"d:/mapbank/"+file+".jpg");
有没有其他方法 谢谢了
wb.DownloadFile(strImageLocation,"d:/mapbank/"+file+".jpg");
有没有其他方法 谢谢了
System.Net.WebClient client = new System.Net.WebClient();
System.Drawing.Image img = System.Drawing.Image.FromStream(client.OpenRead(url));//获得图象
img.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg);