ASP.NET [图像处理程序] [英] ASP.NET [Image Handler]

查看:115
本文介绍了ASP.NET [图像处理程序]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还在试图从数据库中加载我的形象。
但是,这不是那么容易的与我的皮肤理解的镜头:
使用处理器
我看了这个东西,是在试图让,但我发现只有一个方法:
映射我的一些页面(webconf)该处理器(ASHX)

I'm still trying to load my image from database. But that's not so easy with my skins to understand the shots : Using Handler I read this stuff and was on trying to make it but I found only one method : Mapping some my page (in webconf) to this handler (ashx)

我需要使用它在我的网页我

和谢谢。

I need to use it in my page in my

and Thank you.

推荐答案

这是pretty直线前进,并已回答过了。

it's pretty straight forward and has been answered before.

<一个href=\"http://stackoverflow.com/questions/21877/dynamically-rendering-aspimage-from-blob-entry-in-asp-net\">http://stackoverflow.com/questions/21877/dynamically-rendering-aspimage-from-blob-entry-in-asp-net

,其中最新手感到困惑的是,将图像数据从未分配给asp.net图象控制的任何属性。而不是图像的src被分配给图像处理程序的URL。然后该图像处理程序中的数据写入到通过回复于()的响应。

where most novices get confused is that the image data is never assigned to any property of the asp.net image control. instead the src of the image is assigned to the url of the image handler. The image handler then writes the data to the response via Response.Write().

这篇关于ASP.NET [图像处理程序]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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