Solved

ASP IIS JPG Stream - IE ok Chrome not

Posted on 2010-08-16
2
363 Views
Last Modified: 2012-05-10
http://www.miamiconservancy.org/Water_Data/Alert/PrecipDataDisplay.asp?Duration=Daily&SensorID=5000&datestart=7/17/2010 8:00:00 AM&dateend=8/16/2010 8:00:00 AM

If you view this in Explore it shows a graph,  if you try this same link in Firefox or Chrome, you get garbage.  This is just a JPG stream using a TeeChart component.

any ideas since this looks like a Browser issue?
0
Comment
Question by:upgraders
2 Comments
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
ID: 33446138
Response.ContentType = "image/jpg"

Because now it is send as "text/html" and browsers interpret it like HTML. IE has a mechanism that defines the contenttype based on the content.
0
 
LVL 1

Author Comment

by:upgraders
ID: 33446198
Sweet... thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now