string pic = "select PIC from _TRBS_PIC WHERE SERIAL = '" + fieldTxt1.Text + "'; SqlDataAdapter sda = new SqlDataAdapter(pic, sqlCnn); DataTable dt = new DataTable(); sda.Fill(dt); if (dt.Rows.Count>0) { byte[] imageBytes = new byte[0]; imageBytes = (byte[])dt.Rows[0][0]; MemoryStream ms = new MemoryStream(imageBytes); picBoxUser.Image = Image.FromStream(ms); // the parameter value is not valid }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)