Solved

ASP IIS JPG Stream - IE ok Chrome not

Posted on 2010-08-16
2
359 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
Comment Utility
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
Comment Utility
Sweet... thanks!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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.

771 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

12 Experts available now in Live!

Get 1:1 Help Now