问题
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.
回答1:
it's pretty straight forward and has been answered before.
Dynamically Rendering asp:Image from BLOB entry in ASP.NET
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().
来源:https://stackoverflow.com/questions/2099545/asp-net-image-handler