HttpHandler issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • latortugamorada
    New Member
    • Jun 2007
    • 6

    #1

    HttpHandler issues

    I have some images which are served using an HttpHandler for several reasons. I've registered the .img extension with ASP.NET and added an <ADD> directive in the web.config file so that I can reference any image in HTML using the following syntax:

    <img src="http://mydomain.com/images/1234.img?size=t humbnail" />

    Every piece of that web site works fine.


    Now I'm creating a second web site located on a different server. When I use the same syntax as before:

    <img src="http://mydomain.com/images/1234.img?size=t humbnail" />

    the image is not loaded correctly. It almost seems as though the browser won't display images from external sites unless their extension is recognizable or something weird like that. Has anyone else had any experience with this sort of thing? Any ideas on how to fix this? Am I missing something fairly obvious?

    Thanks in advance!

    P.S.
    Yes, the two sites have to be on separate servers.
    No, I cannot put the images on both servers.
    Yes, I do have to use an HttpHandler to serve the images.
  • latortugamorada
    New Member
    • Jun 2007
    • 6

    #2
    It may also be helpful to know that if I just type the URL directly into a browser:



    the image appears as expected. If after doing that I go back to a page with an HTML reference to the image:

    <img src="http://mydomain.com/images/1234.img?size=t humbnail" />

    The image appears successfully on any computer. To me this clearly makes it a server issue.

    Comment

    Working...