Posted on: 10/11/2012 1:30:01 AM | Views : 337

Hello, I am trying to get image byte, and I have done like this, but there is an error in the code. What should I do?
private void BindControlvalues() { con = new SqlConnection(connString); con.Open(); cmd = new SqlCommand("select * from table1 where ID=" + userid, con); da = new SqlDataAdapter(cmd); con.Close(); ds = new DataSet(); da.Fill(ds); title.Text = ds.Tables[0].Rows[0][1].ToString(); //title sum.Text = ds.Tables[0].Rows[0][2].ToString(); //sum FileUpload1.FileBytes = ds.Tables[0].Rows[0][2].ToString();//image }
...

Go to the complete details ...