且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

连接字符串中的问题(我可以检索数据,但不能存储在数据库中)

更新时间:2023-11-06 19:42:46

查看此链接:
http://geekswithblogs. net/dotNETvinz/archive/2009/04/23/uploading-and-storing-images-to-database-in-asp.net.aspx [
Check out this link :
http://geekswithblogs.net/dotNETvinz/archive/2009/04/23/uploading-and-storing-images-to-database-in-asp.net.aspx[^]

you will have to scroll down to the bottom to get to the meaningfull information.
Bottom line is that I see that your parameter definition is wrong:
param[0] = new SqlParameter("@img", SqlDbType.Image, length);