the type you are using is wrong, you need to convert your data to byte[], and use SqlDbType.Image, see
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=uyWJkqueCHA.508%40tkmsftngp12also see
HOW TO: Read and Write BLOB Data by Using ADO.NET with Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;309158
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=uyWJkqueCHA.508%40tkmsftngp12also see
HOW TO: Read and Write BLOB Data by Using ADO.NET with Visual C# .NET
http://support.microsoft.com/default.aspx?scid=kb;EN-US;309158
解决方案 »
- asp.net中如何得到当前点击的menu的item的text?
- 求一条数据分类汇总数据的语句
- 在线坐等。。。关于判断的问题
- 新手,求个简单的.net网站
- Button.ttributes.Add 不能响应
- 如何实现内容格式固定的网页打印?
- 能不能在页面实现大转盘抽奖的效果?不用Flash!
- 各位大哥,小弟问一下Button清空已填(textbox)或已选(dropdownlist)的数据,怎么样才能让页面不刷新(就是只让请空操作在客户端处理
- winform网页问题
- 重分寻求答案:很奇怪的问题,为什么用Localhost不行了
- 请问高手们:弹出窗口为何被挡住了?
- 请问各位大哥我的checkbox放在datagrid里,如果是Codebehind如何调用我的checkbox事件?
byte[] MyData=(Convert.ToByte(textfield2.Value));或者byte[] MyData=(byte[])(Convert.ToByte(textfield2.Value));
有错误