XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
alpacino toldoSubject: Displaying Base64Binary as Image
Author: alpacino toldo
Date: 03 Jun 2008 04:37 AM
Hi,

I saved an image in an xml file as a Base64Binary as indicated below:
<image>iVBORw0KGgoAAAANSUhEUgAAACkAAAAbCAIAAABusDEHAAAArUlEQVR42uWWURKAIAhEuf+l6zMTdgVFHcu/dKYHLLjKtW/JSWxRa2neFa8b/y221gKp08lGelfIcieNDX+nwiKKSChXlBzXHo2DeGamOoqyGzVvTipik1C8evvZqMVKBvkczTv5TrXn792u69jOus1i76k5L8M2dr6HhvJO9rHj2Xoazcv4kS80Y6Y1ofvOtHC0yTwfhcJ9pRH0+LvF72n/Y+fUHD78sLeiZrwB1vtbMhwrqvYAAAAASUVORK5CYII=</image>

the schema supporting this file is an XSD file

I am trying to display this image using Stylus studio, I tried several method but it, but it display me juste the string type.

is not working.
I appreciate any help .

thnx

Postnext
Tony LavinioSubject: Displaying Base64Binary as Image
Author: Tony Lavinio
Date: 03 Jun 2008 07:30 AM
To display it, you need to turn it into an image.
See http://www.stylusstudio.com/binary_xml.html

Postnext
alpacino toldoSubject: Displaying Base64Binary as Image
Author: alpacino toldo
Date: 03 Jun 2008 09:55 AM
thank for your help.
but in stylus studio i dont knox hox to modify it, so how can i mention it in stylus studio.
thanks

Postnext
Tony LavinioSubject: Displaying Base64Binary as Image
Author: Tony Lavinio
Date: 03 Jun 2008 11:00 AM
You can't display the image directly in XML; you'll need to generate
output that knows about images so that the embedded web browser can
display it.

XML doesn't have the concept of an 'image'.

If you generate HTML, you will then have to write the binary data out
to separate files and reference them with <img src=""> elements.

Postnext
Ivan PedruzziSubject: Displaying Base64Binary as Image
Author: Ivan Pedruzzi
Date: 03 Jun 2008 03:53 PM

In Stylus Studio you could design an XQuery like the following that generates the image files as well as an html document for rendering purpose.

declare variable $myXML := doc("file:///c:/temp/base64/image.xml");

<html>
<head/>
<body>
{
ddtek:serialize-to-url($myXML/image,
"file:///c:/temp/base64/image.gif",
"method=Base-64")
}
<div>
<IMG src="image.gif"/>
</div>
</body>
</html>

Hope this helps
Ivan

Posttop
alpacino toldoSubject: Displaying Base64Binary as Image
Author: alpacino toldo
Date: 05 Jun 2008 03:38 AM
sory i dont aderstand very well.
how can i integrate this query to my report and references it with my xml file.
thak you

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.