hi everybody.
i want place a user image into picturebox when user login.its done in windows application using c#.
here is my code:
SqlCommand cmd1 = new SqlCommand("SELECT * FROM forstepb WHERE id =" + id + "", conn);
SqlDataAdapter adap = new SqlDataAdapter(cmd1);
DataSet ds1 = new DataSet();
adap.Fill(ds1,"forstepb");
Byte[] byteBLOBData = new Byte[0];
byteBLOBData = (Byte[])(ds1.Tables[0].Rows[0]["passimg"]);
MemoryStream stmBLOBData = new MemoryStream(byteBLOBData);
pictureBox1.Image = Image.FromStream(stmBLOBData);
how can i use in that situation.
pls...