SqlCommand cmd1 = new SqlCommand("SELECT * FROM forstepb WHERE id =" + id + "", conn); SqlDataAdapter adap = new SqlDataAdapter(cmd1); DataSet ds1 = new DataSet(); adap.Fill(ds1,"forstepb");// all work fine Byte[] byteBLOBData = new Byte[0];// code is skip in that line byteBLOBData = (Byte[])(ds1.Tables[0].Rows[0]["passimg"]); MemoryStream stmBLOBData = new MemoryStream(byteBLOBData); pictureBox1.Image = Image.FromStream(stmBLOBData);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)