如何从数据库中的图像设置图像URL [英] How to set image url from image in database

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

问题描述

你好朋友

我有一个名为``Members''的表,因为我将成员图像存储在一个列中,即
列:Memberpicture(图像为空)

我想从数据库中检索该图像列,需要将该图像分配给数据列表itemtemplate中的图像控件imageUrl

请帮助我

谢谢
kishore

Hi friends

I have a table called ''Members'' in that i am storing member image in one column I.e.
Column: Memberpicture (image,null)

I want to retrive that image column from database and need to assign that image to image control imageUrl which is in datalist itemtemplate

Please help me

Thanks
kishore

推荐答案



您必须使用通用处理程序来检索和显示图像.

请参阅这些

http://www.c-sharpcorner.com/uploadfile/desaijm/httphandlersforimages11152005062705am/httphandlersforimages.aspx /a> [ ^ ]
http://msdn.microsoft.com/en-us/library/bb398986.aspx [ ^ ]
http://stackoverflow.com/questions/4633479/asp-net-image-control-how-to-put-an-image-in-it [ ^ ]
http://geekswithblogs.net/dotNETvinz/archive/2009/04/24/displaying-image-to-image-control-based-on-user-selection-in.aspx [ http://www.aspnettutorials.com/tutorials/database/saving-retrieving-image- cs.aspx [ ^ ]

希望对您有帮助
Hi,

you have to use generic handler to retrive and displaying the image.

refer these

http://www.c-sharpcorner.com/uploadfile/desaijm/httphandlersforimages11152005062705am/httphandlersforimages.aspx[^]
http://msdn.microsoft.com/en-us/library/bb398986.aspx[^]
http://stackoverflow.com/questions/4633479/asp-net-image-control-how-to-put-an-image-in-it[^]
http://geekswithblogs.net/dotNETvinz/archive/2009/04/24/displaying-image-to-image-control-based-on-user-selection-in.aspx[^]
http://www.aspnettutorials.com/tutorials/database/saving-retrieving-image-cs.aspx[^]

hope it helps


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

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