when i export WebChart image in jpeg format into response.OutputStream
it works fine
Code: Select all
private void Button1_Click(object sender, System.EventArgs e)
{
webChart.Chart.Export.Image.JPEG.Save(System.Web.HttpContext.Current.Response.OutputStream);
}
Code: Select all
private void Button1_Click(object sender, System.EventArgs e)
{
webChart.Chart.Export.Image.PNG.Save(System.Web.HttpContext.Current.Response.OutputStream);
}
"A generic error occurred in GDI+."
also when I export image not in Response.OutputStream but in a file
it works fine in both cases: with JPEG format and PNG format
thank you