WindowsFormsApp1/utils/ui/ImageUtil.cs
@@ -14,8 +14,12 @@ //展示网络图片 public static void DisplayImage(PictureBox pictureBox,String url) { Image pic = Image.FromStream(WebRequest.Create(url).GetResponse().GetResponseStream()); pictureBox.Image = pic; try { Image pic = Image.FromStream(HttpUtil.HttpGetImage(url)); pictureBox.Image = pic; } catch (Exception e) { } } } }