HOW TO: Show EMF image in BinaryImage on IE8

4 posts, 0 answers
  1. e.urj
    e.urj avatar
    4 posts
    Member since:
    Feb 2008

    Posted 26 May 2010 Link to this post

    Using BinaryImage, how can I show an emf image as Byte array from database on IE8? In the code, I have updated Photo column with emf image in CustomerPhotos table. The modified application does not show the emf image on IE8 but shows it on IE6/IE7 because the Content-Type is image/*.

    (Q1) Is there any way to set image/x-emf to the Content-Type for BinaryImage?
    (Q2) Is there the correct way to show an emf image in BinaryImage on IE8?

    Best regards,
  2. BaiH
    BaiH avatar
    83 posts
    Member since:
    Aug 2008

    Posted 28 May 2010 Link to this post

    Don't think it is possible to show EMF in the browser at all and I'm sure it is not supported by RadBinaryImage.

    --BH
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. e.urj
    e.urj avatar
    4 posts
    Member since:
    Feb 2008

    Posted 28 May 2010 Link to this post

    If you add "image/x-emf" to MIME-type in IIS, it is possible to show EMF image by BinaryImage in IE6/IE7 but not in IE8. Does anyone know how to show EMF by BinaryImage in IE8?
  5. BaiH
    BaiH avatar
    83 posts
    Member since:
    Aug 2008

    Posted 31 May 2010 Link to this post

    As I said I'm positive that RadBinaryImage does not support EMFs. You can try to override the handler and explicitly output the image with the contenttype you want.

    --BH
Back to Top