如何在C#中显示从数据库到datagridview的图像 [英] how to display images from database to datagridview in c#
本文介绍了如何在C#中显示从数据库到datagridview的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在c#
推荐答案
为此,您必须使用BLOB读取代码.
For this, you have to use BLOB read code.
您必须将它们从数据库中拉出,然后可以从数据库中的字节数据(假定这不是Web应用程序)在内存中构造它们,然后创建显示的位图对象.
You have to pull them out of the DB and you can construct them in memory from the byte data from the DB ( assuming this is not a web app ) and then create bitmap objects, which you show.
以下链接可能对您有帮助,
将图像从数据库绑定到DataGrid(Web应用程序) [ Retrieving_Images_from_SqlServer_and_displaying_in_a_DataGrid__ASP_NET []
:)
Following links might help you,
Bind Image from Database to DataGrid (web Application)[^]
Retrieving_Images_from_SqlServer_and_displaying_in_a_DataGrid__ASP_NET[^]
:)
这篇关于如何在C#中显示从数据库到datagridview的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文