public static void LoadPicFromStream(string url) { string content = string.Empty; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(""); request.Method = "GET"; HttpWebResponse response = request.GetResponse() as HttpWebResponse; Stream stream = response.GetResponseStream(); Image image = Image.FromStream(stream); image.Save("", System.Drawing.Imaging.ImageFormat.Jpeg); }
原文:http://www.cnblogs.com/slu182/p/4252740.html