从检索二进制数据图像的ImageField [英] Retrieving image from binary data to imagefield

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

问题描述

我已存储在我的图像数据库格式,如何取回,而无需使用GridView控件或DataList控件来ImageField的形象?我只是想它检索到的ImageField只

I have stored my image in database as format, how do i retrieve the image to imagefield without using gridview or datalist? I just want to retrieve it to the imagefield only

推荐答案

您可以使用的HttpHandler检索二值图像,然后将其绑定到与SRC属性一个图像contorl。检查此链接。

You can use the httphandler to retrieve the binary image, and then bind it to one image contorl with src property. Check this link.

http://forums.asp.net/t/1824646.aspx/1

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

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