IHttpHandler Example required for Image Type Files C# ASP.Net

妖精的绣舞 提交于 2019-12-01 10:52:38

问题


Can anyone provide a good example of IHttpHnalder for handling Image Type. I want to resize the image that's hosted on my server


回答1:


Problem using iHttpHandler

and

How to know which image has been requested

Both have examples of HTTPHandlers for serving images.




回答2:


The answers by Zhaph and Ady seem to point in the right direction already, but if you need an additional example...

My article on BlobStreams for the Microsoft.NET Magazine here in Holland includes a very simple example of serving images from database BLOBs. Can't remember if the example used an IHttpHandler or a simple ASP.NET page, but for the code you need it really doesn't matter that much.




回答3:


How About. http://blog.jasonnussbaum.com/?p=104

Source is available in the downlaod.

If you are resizing GIF you may also want to look into image quantizing.



来源:https://stackoverflow.com/questions/386142/ihttphandler-example-required-for-image-type-files-c-sharp-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!