//图片转换成byte[]
private byte[] moneyimage;
moneyimage = File.ReadAllBytes("D:\\Penguins.jpg");
//byte[]显示到pictureBox
using (MemoryStream ms = new MemoryStream(moneyimage))
{
pictureBox1.Image = Image.FromStream(ms);
}
//图片转换成byte[]
private byte[] moneyimage;
moneyimage = File.ReadAllBytes("D:\\Penguins.jpg");
//byte[]显示到pictureBox
using (MemoryStream ms = new MemoryStream(moneyimage))
{
pictureBox1.Image = Image.FromStream(ms);
}