Load an image from a url into a PictureBox

Posted   智信智爱智强不息

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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;

以上是关于Load an image from a url into a PictureBox的主要内容,如果未能解决你的问题,请参考以下文章

Load Image from Oracle BLOB into WPF Image Control

Import image from './image.jpeg' results Failed to load module script 服务器以“image/jpegerror”的非 JavaSc

启动hadoop报ERROR org.apache.hadoop.hdfs.server.namenode.FSImage: Failed to load image from FSImageFile

No module named 'torchvision.models.utils',无法加载load_state_dict_from_url解决

AGG第四十二课 Blitting an image over another with transparency

python中的image.load_img错误,Keras