Author: wmec | Posted on: 9/17/2009 11:48:03 PM | Views : 439

 Hi,
Is there any example for which we assign an image (as a byte) to an image object on the web page? I have these codes
private void btnLoad_Click(object sender, System.EventArgs e)
{
    try
    {
        SqlCommand cmdSelect=new SqlCommand("select Picture" +
              " from tblImgData where ID=@ID",this.sqlConnection1);
        cmdSelect.Parameters.Add("@ID",SqlDbType.Int,4);
        cmdSelect.Parameters["@ID"].Value=this.editID.Text;
        this.sqlConnection1.Open();
        byte[] barrImg=(byte[])cmdSelect.ExecuteScalar();
  &nb ...

Go to the complete details ...