如何从数据库中检索图像 [英] How to retrieve image from Database

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

问题描述

您好先生/女士,

请为数据库中的图像检索提供代码
我的项目中的
在第一个文件夹中有2个文件夹我正在创建图像处理程序该文件夹图像显示但第二个文件夹我们用这些代码进行图像检索但图像无法显示



请给我任何想法或代码

Hello Sir/Madam,
please give a code for image retrievefrom data base
in my project having 2 folders in First Folder i am creating image handler that folder image display but second folder we user these code for image retrieve but image cannot be display

please give me any idea or code

推荐答案

你好..



最好这样做



1.Store Image在本地文件夹中,如〜/ Images /

2.在数据库中存储图像引用

3.检索引用并映射到本地文件夹
Hi..

Better to do like this

1.Store Image in Local Folder like "~/Images/"
2.Store the image reference in Database
3.Retrieve the reference and map to the local folder


尝试

http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx [ ^ ]

http://www.dotnetcurry.com/showarticle.aspx?ID=129 [ ^ ]

如何使用Asp.net在数据库中保存和检索图像 [ ^ ]



互联网上有大量其他信息。
Try
http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx[^]
http://www.dotnetcurry.com/showarticle.aspx?ID=129[^]
How to save and retrieve Image in Database using Asp.net[^]

There is tons of other information available on the internet.


Refer- 如何将图像插入数据库以及如何使用asp.net检索图像并将图像绑定到gridview(或保存并从数据库中检索图像使用asp.net [ ^ ]。
Refer- how to insert images into database and how to retrieve and bind images to gridview using asp.net (or) save and retrieve images from database using asp.net[^].


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

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