
Signature
WBR, Michael Nemtsev [.NET/C# MVP].
Blog: http://spaces.live.com/laflour
The problem with the IHttpHandler is that I cannot install things into
IIS or make changes to script mappings or etc. I have to have a "pure
xcopy" solution. Even if there is a speed penalty, I would like to
have an image-emitting class that creates a JPG that I can just put
into a page from a codebehind.
I am looking around on the web for more ideas, but all input here is
preferred and appreciated. :)
Thanks.
>I think the best option is to create IHttpHandler where you will create your
>images with your class.
>
>After that you can generate all images in your pages via image handler.
>
>google by "asp.net ihttphanlder image" to find samples
Walter Wang [MSFT] - 06 Feb 2008 01:53 GMT
Hi,
You should only need to modify your web application's web.config to use an
IHttpHandler.
On the other hand, using some WebForm to output image data is also easy to
achieve, all you need is to correctly set the HTTP header and the
ContentType, please refer to following KBs:
How To Write Binary Files to the Browser Using ASP.NET and Visual C# .NET
(http://support.microsoft.com/kb/306654)
HOW TO: Read and Write BLOB Data by Using ADO.NET Through ASP.NET
(http://support.microsoft.com/kb/326502)
Regards,
Walter Wang (wawang@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.