inline image mime type - InfoPath Dev Sign in | Join | Help in General InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » General » inline image mime type 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: Oldest to newest Newest to oldest Previous Next 07-22-2004 05:46 AM inline image mime type Reply Contact 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 Patrick Halstead Joined on 08-08-2006 Posts 5,110 Re: inline image mime type Mark as Not AnswerMark as Answer... Reply Contact 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 HalsteadProject Manager at Qdabra 07-23-2004 02:16 AM In reply to Re: inline image mime type Mark as Not AnswerMark as Answer... Reply Contact 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 Patrick Halstead Joined on 08-08-2006 Posts 5,110 Re: inline image mime type Mark as Not AnswerMark as Answer... Reply Contact Sorry for the delay. Thom Robbins has blogged this in more detail. Have you looked at: http://radio.weblogs.com/0131777/categories/infopathTipsAndTricks/2004/04/04.html#a107 ? Patrick HalsteadProject Manager at Qdabra Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Use our Google Custom Search for best site search results.