2012年2月29日
摘要: System.Drawing.Image image = null; try { string fileName = imgs[i]; string filePath = commonpath + imgs[i]; string localFile = localpath + imgs[i];HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(filePath); HttpWebResponse webresponse = (HttpWebResponse)webrequest.GetResponse(); if (web 阅读全文
posted @ 2012-02-29 18:10 小白白小 阅读(577) 评论(0) 推荐(0)
摘要: private Image GetImage(string url) { if (string.IsNullOrEmpty(url)) return null; WebClient webClient = new WebClient(); MemoryStream stream = null;try { byte[] byteImage = webClient.DownloadData(url); stream = new MemoryStream(byteImage); Image image = (Image)new Bitmap(stream); return image; } catc 阅读全文
posted @ 2012-02-29 18:04 小白白小 阅读(155) 评论(0) 推荐(0)