Problem with pjpeg Images RRS feed

  • Question

  • Im using report viewer control to show images uploaded to the database.
    The images are included in the report as external images, the url is set to a handler that retrieves the images from the database.
    This works fine for images copied from the filesystem or uploaded using non IE Browser (tested FF and Chrome).
    However JPEG files uploaded via IE are converted to PJPEG format for some reason.
    The report viewer control doesnt display these.
    Anyone had the same problem?
    Are pjep images not supported?
    Friday, June 12, 2009 2:03 AM


  • hm seems like changing the contenttype of the response solves the problem:
    This ugly line does the trick:
    if (context.Response.ContentType == "image/pjpeg")
                        context.Response.ContentType = "image/jpeg";
    Would still be interested in why though...
    • Marked as answer by Pavlek Friday, June 12, 2009 2:16 AM
    Friday, June 12, 2009 2:14 AM