Author: Dora743 | Posted on: 10/30/2009 11:43:53 PM | Views : 966

Hello one and all,
                            I designed my code for file upload in Data Access Layer Like this


public int inertimage(string Imgtitle, byte[] Image1, string ContentType)
        {
            string qry = "insert Image(Imgtitle,Image1,ContentType)"
                + "Values(@Imgtitle,@Image1,@ContentType)";
            cmd.CommandText = qry;
            cmd.CommandType = CommandType.Text;
            
      ...

Go to the complete details ...