Load an image from a url into a PictureBox

var url="https://xyk.cebbank.com/verify_code.jpg?3345789";

HttpClient client = new HttpClient();

Bitmap bitmap = null;
var stream = client.GetStreamAsync(url).Result;
bitmap = (Bitmap)Image.FromStream(stream);
this.PictureBox.Image = bitmap;

原文地址:https://www.cnblogs.com/zhangzhi19861216/p/5825659.html