using (MemoryStream ms = new MemoryStream((byte[])SqlDataReader["TestImageColumn"])) { ms.Position = 0; ms.Seek(0, SeekOrigin.Begin); pictureBox1.Image = System.Drawing.Image.FromStream(ms); ms.Flush(); ms.Close(); }
pictureBox1.Image = System.Drawing.Image.FromStream(ms, false, true);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)