WebRequest wreq = WebRequest.Create("http://mmbiz.qpic.cn/mmbiz/8jauNKmzssNSibuH14RnI1EOLJhRMLDgrA4nfVCGLhHj2AGmGZrI0ms0ibbGNluhojItGpMQv9S4v754zwaJ9kxQ/0"); HttpWebResponse wresp = (HttpWebResponse)wreq.GetResponse(); Stream s = wresp.GetResponseStream(); System.Drawing.Image img; img = System.Drawing.Image.FromStream(s); string name=DateTime.Now.ToString("ddHHmmssffff"); img.Save("D:\\" + name+".jpg");
时间: 2024-11-09 00:54:28