This is a migrated thread and some comments may be shown as answers.

Anyway to make use of Telerik.Web.UI.WebResource HTTP handler in our app?

1 Answer 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Athadu
Top achievements
Rank 1
Athadu asked on 08 Apr 2011, 05:13 PM
Hi

We are currently using ASP.NET ImageMap to display dynamically generated images, that have hotspots, in our web app, which also uses Telerik ASP.NET AJAX controls extensively.

ASP.NET ImageMap control requires that the image file be a physical file sitting in our web app folders and you specify the URL to that file.  This requires that we need to create temp files and manage them - deleting etc.

To avoid creating those 'physical files' and use in-memroy images, I realize we can cache the image and write a HTTP handler that can stream the image from that cache. 

Before I sit down and write my own handler...

I was wondering if we can pile onto the Telerik.Web.UI.WebResource that does similar work for Telerik's resources.  Does it expose any functionality where we can tell it say - here is the image stream, that is in this cache, serve this image when the request is made in certain fashion for the image resource?

Any pointers appreciated.

Regards
Athadu

1 Answer, 1 is accepted

Sort by
0
Athadu
Top achievements
Rank 1
answered on 08 Apr 2011, 08:26 PM
Hi

I think I answered my own question.  In my case, I ended up using HttpContext.Cache, saving a reference to the image in the cache, and when the request for the image file comes in, returning back the cached image from Application_BeginRequest in our web app.

Thank you
Regards
Athadu
Tags
General Discussions
Asked by
Athadu
Top achievements
Rank 1
Answers by
Athadu
Top achievements
Rank 1
Share this question
or