Hi ,
Check this
With the same Datasource you are using to bind your DataGrid
using (SqlConnection con = new SqlConnection(@"Data Source=pc\SQLEXPRESS;Initial Catalog=test;Persist Security Info=True;User ID=sa;Password=***"))
{
con.Open();
using (SqlCom
mand cmd = new SqlCommand("select * from ImageInsert", con))
{
SqlDataAdapter adpt = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adpt.Fill(ds);
DataRow Row;
Row = ds.Tables[0].Rows[0];
byte[] MyImg = (byte[])Row[1];
MemoryStream ms = new MemoryStream(MyImg);
Image img = Image.FromStream(ms);
pictureBox1.Image = img;
}
}
Best Regards
M.Mitwalli