I'm trying to display an image returned by an aspx page like this
<asp:Image ID="ButtonImage" runat="server"
Width="200"
Height="113"
BackColor="LightGray"
ImageUrl="/Editor/OpenMedia.aspx?path=336!TestImage.jpg"/>
OpenMedia.aspx
public partial class OpenMedia : MemberPage
{
protected void Page_Init(object sender, EventArgs e)
{
string path = Request.QueryString["path"];
HASFile file = new HASFile(path);
HASConnection con = new HASConnection(ConfigurationManager.AppSettings["HASUrl"]);
HASReader reader = new HASReader(con);
reader.getFile(file, Response.OutputStream);
Response.ContentType = "image/jpeg";
}
}
When I look at the response with fiddler the image is returned correctly and it works correctly in Firefox but not in IE. How come this isn't working with IE?