[Mono-list] HttpHandler for *.jpg

Marc DM m at phronein.com
Mon Jun 20 08:38:53 EDT 2005


*told you I was falling asleep*

Everything is referenced with the correct case. The UPPERCASE filenames
(in my previous email) was only that way for emphasis. 

In the config it says ".jpg" and all image files are renamed to .jpg
(lowercase extension) before being deployed.

I'm about to start Response.Write my way through it now. Wish me luck.

MDM


On Mon, 2005-06-20 at 04:30 -0400, Gonzalo Paniagua Javier wrote:
> On Mon, 2005-06-20 at 02:53 -0500, Marc DM wrote:
> [...]
> > http://mysite/images/Beach12/DCS001.JPG?w=200
> >    to give me the image at the specified url, but proportionately
> >    resized to 200px wide.
> > -----------------APACHE CONFIG---------------------
> > ---------------------/etc/apache2/sites-available/mysite----------
> [...]
> >         AddHandler mono .aspx .ascx .jpg
> [...]
> > -----------------web.config---------------------
> >   <system.web>
> >     ...
> >     ...
> >     <httpHandlers>
> >       <add verb="*" path="*.jpg"
> > type="Mynamespace.HttpHandlers.ImageHandler,HolmokImageHandler />
> > </httpHandlers>
> 
> Note that on linux .jpg is not the same as .JPG, while on windows it
> is...
> 
> Your blah.JPG request is being processed either by apache before
passing
> it to mod_mono or by the StaticHandler if it gets to mod_mono. That's
> why your handler never sees that.
> 
> -Gonzalo
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 




More information about the Mono-list mailing list