且构网

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

我以二进制形式将图像保存在数据库中如何检索以gridview形式在数据库中显示图像

更新时间:2023-02-15 11:42:08

是答案.
Sergey Chepurin.
Here is the answer.
Sergey Chepurin.


请尝试以下步骤:
1.打开连接
2.使用选择查询准备命令
3.执行命令,获取数据集紧密连接中的数据.
4.将数据集表的字段绑定到网格-一个将是图像字段
Try these steps:
1. Open connection
2. Prepare a command with a select query
3. Execute command, get data in a dataset close connection.
4. Bind the fields of dataset table to the grid - one would be image field