>byte[] ba = (byte[])Tables.Tables["company"].Rows[0]["Image"]; >MemoryStream stream = new MemoryStream(ba); >Bitmap bitmap = new Bitmap(stream); >this.pictureBox1.Image = bitmap; >>does it throw an exception on this line "Bitmap bitmap = new Bitmap(stream);"? --> YES its generating "Parameter is not valid"
byte[] ba = (byte[])Tables.Tables["company"].Rows[0]["Image"]; MemoryStream stream = new MemoryStream(ba); stream.Write(ba, 0, ba.Length); Bitmap bitmap = (Bitmap)Bitmap.FromStream(stream, true); this.pictureBox1.Image = bitmap;