in databse tabel i have fieild with type varbinary(max) for storing image,
so i achieved it and stored my image but the problem is that when i use this line
SqlParameter p8 = new SqlParameter("logo", SqlDbType.VarBinary).Value= productImage;
then it gives me an error but when i use this line :
com.Parameters.Add("@logo", SqlDbType.VarBinary).Value = productImage;
then it works , WHY ??????
NoteL i am using asp.net 3.5 + sql server 2008 , and using SP to execute it which i achieved but confused about the problem above. HELP !