private void load_picturebox_Click(object sender, EventArgs e) { byte[] ImageByte = null; MemoryStream MemStream = null; PictureBox PicBx = new PictureBox(); object OB; vcon.Open(); int ImageID = 1; string sql = "SELECT picture FROM dictionary WHERE serial_no = " + ImageID + ""; OleDbCommand vcom = new OleDbCommand(sql, vcon); ImageByte = (byte[])vcom.ExecuteScalar(); MemStream = new MemoryStream(ImageByte); PicBx.Image = Image.FromStream(MemStream); }
PicBx.Image = Image.FromStream(MemStream);
"Parameter is not valid"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)