If the jpeg / gif file is within a zip archive file, you can use the
EXPath Zip function: zip:binary-entry.
From the spec[1]:
zip:binary-entry($href as xs:anyURI, $entry as xs:string) as xs:base64Binary
Extracts the binary stream from the file positioned at $entry
within the ZIP file identified by $href and returns it as a Base64
item
Phil Fearon
http://qutoric.com
[1] http://expath.org/spec/zip
On Wed, Apr 27, 2011 at 11:36 AM, tom tom <tomxsllist(_at_)hotmail(_dot_)com>
wrote:
I need to take a jpeg / gif file as input and output it as base 64.
Is there a way to do this using XSLT 2 (Saxon 9+) / extension functions.
Thanks
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--