[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Getting an image from base64-encoded data

Subject: RE: Getting an image from base64-encoded data
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Fri, 19 Oct 2001 11:20:16 +0100
javascript base64 image
Jeni,
Have a look at
http://msdn.microsoft.com/downloads/samples/internet/default.asp?url=/do
wnloads/samples/internet/behaviors/library/webservice/default.asp for a
simple JavaScript base64 function. Add a couple of lines to write the
result to a file and you are sorted. Or for the external method have a
look at uuencode

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Jeni Tennison
> Sent: 19 October 2001 10:20
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: ZHihui Li
> Subject:  Getting an image from base64-encoded data
> 
> 
> Hi,
> 
> I've been asked off list what the best approach is in the following
> situation:
> 
> You have an XML document that contains an element that 
> contains a base64-encoded image, something like:
> 
> <Document_Type>
>   <IMAGE xmlns:dt="urn:schemas-microsoft-com:datatypes"
>          dt:dt="bin.base64">SUkqAAgAAAAPAP4ABAABAAAAAA...</IMAGE>
> </Document_Type>
> 
> You need to get a .tif file that contains the binary data 
> encoded within the XML.
> 
> I suggested writing the content of the IMAGE file out into a 
> text file with XSLT and then converting from base64 to binary 
> through an external process. I wondered if anyone else had 
> other suggestions about how to deal with it? For example, 
> using extensions?
> 
> And thinking further than that... XML Schema has a couple of 
> binary data types - is this (decoding and writing out binary) 
> going to be a requirement that we encounter in future 
> versions of XPath/XSLT? Is it ever going to be XSLT's job?
> 
> Thanks in advance for your thoughts,
> 
> Jeni
> ---
> Jeni Tennison
> http://www.jenitennison.com/
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.