473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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=thumbnail" />

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=thumbnail" />

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.
Dec 9 '08 #1
1 1038
It may also be helpful to know that if I just type the URL directly into a browser:

http://mydomain.com/images/1234.img?size=thumbnail

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=thumbnail" />

The image appears successfully on any computer. To me this clearly makes it a server issue.
Dec 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Earl Teigrob | last post by:
My company sells software and wants to provide downloadable product. Some of these downloads will be full CD's of over 550M I had everything working fine using Response.filewrite() but when we...
3
by: Jed | last post by:
I have written an HttpHandler which I invoke through an ashx page. The HttpHandler does various things to process the request, then it is supposed to redirect to a confirmation page. Everything...
0
by: Steven | last post by:
I am using a HttpHandler (the ASP.NET 1.1 DynamicImage control from MSDN -- http://msdn.microsoft.com/msdnmag/issues/04/04/CuttingEdge/default.aspx) to handle all calls to cachedimageservice.axd. ...
14
by: qwerty | last post by:
Hi, I am using a third party win 2003 iis 6.0 to serve my website. The web site has a httphandler which does some custom jobs. When I try to invoke the httphandler from some url call, it won't...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
4
by: ms | last post by:
Something weird is going on here, an HttpHandler works perfectly, exect when I post a form to it using the post method it gives me an file not found 404 error, if I post to it using the get method...
4
by: Victor | last post by:
Hi Guys I have a problem with my httphandler here. I have several httphandler in my application. each of them do the different job. but I found sometimes it really slow down the performance. Is...
5
by: zlf | last post by:
Hello, I try to use a custom HttpHandler to add something to session, then display the original page. public void ProcessRequest(HttpContext context) { context.Session = "test"; } But, a...
5
by: Joe | last post by:
Is it possible to return a page in the ProcessRequest method? For example if someone enters www.mydomain.com/user/joe I want to return a page user.aspx?user=joe but I don't want the URL to show in...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.