Author: archana.jape | Posted on: 1/5/2009 12:15:29 AM | Views : 512

 hi to all,
strsql = ConfigurationManager.ConnectionStrings["ShoppingConnectionString"].ConnectionString;
        conn = new SqlConnection(strsql);
        conn.Open();

        if (FileUpload1.PostedFile != null
               && FileUpload1.PostedFile.FileName != "")
        {

            myimage = new byte[FileUpload1.PostedFile.ContentLength];
            HttpPostedFile Image = FileUpload1.PostedFile;
            Image.InputStream.Read(myimage, 0, (int)FileUpload1.PostedFile.ContentLength);

   &nb ...

Go to the complete details ...