不能。
bitmap以BLOB形式存储。
在.Net中,必须先存储一条此字段为空的记录,然后再利用Parameter对象Update这条记录为BlOB字段赋值。
bitmap以BLOB形式存储。
在.Net中,必须先存储一条此字段为空的记录,然后再利用Parameter对象Update这条记录为BlOB字段赋值。
解决方案 »
- linq Lambda表达式中时间比较
- 安装项目,安装.net框架太慢请问有什么好的办法解决
- C# windows应用程序,log在怎样才能在windows form中显示?
- 关于控件中的方法调用问题!请各位帮忙!顶帖有分!
- 关于C#开发的系统移植问题,请问怎么做才可以顺利的把开发好的系统移植到其他的系统上???急......
- 求下载Microsoft.Data.ConnectionUI.Dialog.dll
- 写了个 listview 延时加载 缩略图的 代码,但是老是陷入死循环,求指点
- 关于1个从视图中获取记录 并保存入 某表的SQL语句问题,在线等 谢谢
- varbinary类型如何在datagrid中显示
- C# Winform程序实现模拟微信登录并获取用户群列表
- 急求电子版Microsoft C# .Net编程...清华出版,作者是美国的 charles petzold这本书的下载衔接!!
- 新手,请多关照!格式化时间
Dim p As New Bitmap("c:\fish.bmp")
p.Save(ms, p.RawFormat)
Dim arrImage() As Byte = ms.GetBuffer 'create a new row of data in the dataset
Dim r As DataSet1.Table2Row = DataSet11.Photos.NewTable2Row
r.name = "fish"
'set the picture field of the dataset row to the Byte array
r.picture = arrImage 'add the row to the dataset
DataSet11.Photos.Rows.Add(r) 'save the data in the dataset to the database
OleDbDataAdapter1.Update(DataSet11)
http://groups.google.com/groups?q=bitmap+save+dataset+picturebox+memorystream&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Os1JpBupCHA.2796%40TK2MSFTNGP10&rnum=1