从数据库中检索图像的代码 [英] Code to retrieve image from database

查看:92
本文介绍了从数据库中检索图像的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想检索图像并在gridview中显示它。我已将图像存储在一个文件夹中,并将图像路径存储在SQL Server中。我想在Gridview中检索图像。



任何人都可以帮助我吗?

Hi All,

I want to retrieve the image and show it in the gridview. I have stored the image in a folder and stored the image path in the SQL server. And I want to retrieve the image in Gridview.

Can any one help me?

推荐答案

参见这:显示图片在GridView控件中使用存储在SQL Server数据库中的路径 [ ^ ]


http://stackoverflow.com/questions/18998763/how-to- retrieve-binary-image-from-database-using-c-sharp-in-asp-net [ ^ ]和



http://www.aspdotnet-suresh.com/2011/ 01 / how-to-insert-images-into-database-and.html [ ^ ]


检查这个


这篇关于从数据库中检索图像的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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