OleDbDataAdapter dp = new OleDbDataAdapter(str, con); DataTable table = new DataTable("myTable"); DataSet ds = new DataSet("snaps1"); byte[] MyData = new byte[0]; dp.Fill(ds, "snaps1"); DataRow myRow; myRow = ds.Tables["snaps1"].Rows[0]; toolStripStatusLabel2.Text = myRow["imagedescription"].ToString(); MyData = (byte[])myRow["snaps"]; MemoryStream stream = new MemoryStream(MyData); //With the code below, you are in fact converting the byte array of image //to the real image. pictureBox1.BackgroundImage = Image.FromStream(stream); pictureBox1.BackgroundImageLayout = ImageLayout.Zoom;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)