如何在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[^]

:)