con.Open(); MySqlCommand da=new MySqlCommand("select smn_pho from smn where smn_nme='testing'",con); MySqlDataReader ds = da.ExecuteReader(); DataTable dt = new DataTable(); dt.Load(ds); using (MemoryStream ms = new MemoryStream((byte[])dt.Rows[0]["smn_pho"])) { ms.Position = 0; ms.Seek(0, SeekOrigin.Begin); pictureBox2.Image = System.Drawing.Image.FromStream(ms);//Throwing error at this location as Parameter not found... ms.Flush(); ms.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)