I am also seeing the same problem. You can use my site to reproduce/verify
this; it does not require a log-in. You will see the torn page icon under
the "Draw Chart" button. Also note that if you right click this icon and
say "Open image in new tab", the image is displayed properly (in the new
tab).
http://bit.ly/fFgCQX
The image may take a long long time to load (a full minute or more). I'm
on a cheap hosting plan so this is what I have to deal with when nobody
uses this feature on my site for a while.
If the link above doesn't work, you can go to
http://nhl.multimatchupsports.com. Select any number of teams in the table
(at least one) and click "Compare Schedules" then scroll down to the bottom
of the page (or click the "Chart" link). Click the "Draw Chart" button.
You'll see a "Loading..." GIF then the torn page icon should appear after a
few seconds (again, it may take a minute or more for it to load the first
one).
Had the same problem as you guys, images were working in all other browsers
than Chrome. Fixed it by specifying Content-Length in the response header.
string personName = context.Request.QueryString["person"];
ADSearch.SearchAD ADSearcher = new ADSearch.SearchAD();
byte[] image = ADSearcher.GetPhotoAsByteArray(personName);
if (image != null)
{
context.Response.AppendHeader("Content-Length", image.Length.ToString());
context.Response.ContentType = "image/jpeg";
context.Response.OutputStream.Write(image, 0, image.Length);
}
Hope that helps!
Hi I had the same issue. You must to add the inline on the header:
response.AddHeader("content-disposition", "inline;filename=myimage.jpeg");
This solve the problem.
Thx nic solution
thx kris nic solution