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 ...