inline image mime type - InfoPath Dev

InfoPath Dev

Use our Google Custom Search for best site search results.

inline image mime type

Last post 07-27-2004 04:59 PM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-22-2004 05:46 AM

    inline image mime type

    Pasting an image into a Infopath rich text box and submitting the form results in an xml inline image of the format

    <img style=".." src="msoInline/f4b19f6546fa4081" xd:inline="...." />

    Using System.Convert.FromBase64String the xd:inline innertext can be converted to an image.

    However how do I convert the src innertext to something readable. And does it contain the mime type of the image, which would be usefull ?

  • 07-22-2004 11:07 PM In reply to

    The src attribute contains a guid that refers to the image. I believe you'll want to look at the header of the actual base 64 data for the mime type, but not exactly sure. I'll check and get back to you.
    Patrick Halstead
    Project Manager at Qdabra
  • 07-23-2004 02:16 AM In reply to

    I tried reading the first 16 bytes of the converted Base64 and converted these into a GUID which I used to construct a System.Drawing.Imaging.ImageFormat.

    However the System.Drawing.Imaging.ImageFormat does not return any of the available image types.

    It does recognize something because the object returns: [ImageFormat: e0ffd8ff-1000-464a-4946-000101010096] when submitting a jpg image.

    What am i doing wrong ?
  • 07-27-2004 04:59 PM In reply to

    Sorry for the delay.

    Thom Robbins has blogged this in more detail. Have you looked at: ?
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.