Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2004

Tip: Looking for answers? Try searching our database.

Showing image in browser

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sam - 27 Aug 2004 04:23 GMT
Hi all,
I've got a problem on showing the filled form (xml file) from infopath on a
web browser. Theoretically, I can apply a xsl on the filled form, then show
it on a browser as a simple web page.
However, when I insert an image into a rich text field in the form, the
image will be ember into the xml file, I can show the form with the image
again by the infopath. But how can I show it in a brower by applying a xsl?
Brian Teutsch [MSFT] - 27 Aug 2004 22:58 GMT
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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.