将数据库中的图像显示到Detailview / gridview中 [英] Displaying Image from database into Detailview/gridview

查看:64
本文介绍了将数据库中的图像显示到Detailview / gridview中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用fileupload将数据上传到数据库中并将其存储在数据库表格中作为数据类型...我使用存储过程检索数据表中的数据库信息,我在数据表和图像中正确获取as System.byte [] ...现在的问题是如何将数据表中的图像显示到detailview或gridview ..这是将system.byte []转换为图像





plz help

提前感谢

I have uploaded image in database using fileupload and store this in the database table as of datatype as image...i used the stored procedure to retrieve the database info in datatable and i am getting that correctly in the datatable and the image as System.byte[]...Now the problem is how to display that image from the datatable into the detailview or gridview..that is convert the system.byte[] into the image


plz help
thanks in advance

推荐答案

如何将图像插入数据库以及如何使用asp检索图像并将其绑定到gridview。 net(或)使用asp.net保存和检索数据库中的图像 [ ^ ]


按照文章在ASP.Net GridView控件中显示来自SQL Server数据库的图像 [ ^ ]。



谢谢......
Follow the article Display images from SQL Server Database in ASP.Net GridView control[^].

Thanks...


http://forums.asp.net/t/1610271.aspx/1 [ ^ ] [ ]

http: //www.codedigest.com/Articles/ASPNET/119_New_Image_Generator_control_in_ASPNet_35.aspx [ ^ ] [ ]
http://forums.asp.net/t/1610271.aspx/1[^][]
http://www.codedigest.com/Articles/ASPNET/119_New_Image_Generator_control_in_ASPNet_35.aspx[^][]


这篇关于将数据库中的图像显示到Detailview / gridview中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆