Programatically create an img in RTB - InfoPath Dev
in

InfoPath Dev

Programatically create an img in RTB

Last post 01-02-2007 09:43 AM by Greg Collins. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-17-2006 01:53 PM

    Programatically create an img in RTB

    Hi,

    I have a c# .Net program which creates an InfoPath XML file. In a RTB I would like to create an inline image.

    InfoPath seems to encode and compress the image before converting it to Base64. I've read somewhere that it is converted to png format, but I tried that and it still doesn't work.

    I have everything correct, just need to figure out the xd:inline bit.

    Seen lots of examples about extracting these back into images, but I want to go the other way!

    Ian.
  • 01-02-2007 09:43 AM In reply to

    Re: Programatically create an img in RTB

    First off, you don't need to convert to PNG.

    Once you have your base64 text, then you just need to create the <img> tag. Just look at what InfoPath itself does to see what attributes you need. It shouldn't be difficult to produce the tag once you have the base64 value.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.