The best way to do this, since the XML will continue to live on the server,
is to use ASP.NET to repoint the src attributes of the embedded image data.
Then use ASP.NET to stream the decoded data from the original XML file. It
looks like this.
<img src="mso-inline/GUID" xd:inline="base64Data" />
becomes
<img src="mypage.aspx?src=GUID&page=myDoc.xml" />
In ASP.NET, it's quite easy to decode base64 data, so you need only a tiny
amount of code to fetch the original XML and do the decoding.
Brian
> Hi all,
> I've got a problem on showing the filled form (xml file) from infopath on
[quoted text clipped - 6 lines]
> again by the infopath. But how can I show it in a brower by applying a
> xsl?
Greg Collins [MVP] - 28 Aug 2004 02:32 GMT
Brian, can you give a detailed example of how to do this? I've been trying to do this too.
My process is an ASP.NET page which calls a transform on the XML. In the XSL I've got a C# script block that attemps to do the decoding. It almost works, except I can't get it to recognize System.Drawing...
For a much more detailed explanation of what I'm doing, see my posting titled, "Need to add assembly reference to an ASP.NET page with XML/XSL transform", dated 2004-08-25, in the microsoft.public.xsl newsgroup.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
The best way to do this, since the XML will continue to live on the server,
is to use ASP.NET to repoint the src attributes of the embedded image data.
Then use ASP.NET to stream the decoded data from the original XML file. It
looks like this.
<img src="mso-inline/GUID" xd:inline="base64Data" />
becomes
<img src="mypage.aspx?src=GUID&page=myDoc.xml" />
In ASP.NET, it's quite easy to decode base64 data, so you need only a tiny
amount of code to fetch the original XML and do the decoding.
Brian
> Hi all,
> I've got a problem on showing the filled form (xml file) from infopath on
[quoted text clipped - 6 lines]
> again by the infopath. But how can I show it in a brower by applying a
> xsl?
sam - 30 Aug 2004 05:37 GMT
Hi Brian,
Thanks a lot for your suggestion. I'd take a try on it.
> The best way to do this, since the XML will continue to live on the server,
> is to use ASP.NET to repoint the src attributes of the embedded image data.
[quoted text clipped - 20 lines]
> > again by the infopath. But how can I show it in a brower by applying a
> > xsl?