http://www.zorba-xquery.com/modules/converters/base64 ZC

Module Description
Before using any of the functions below please remember to import the module namespace:
import module namespace base64 = "http://www.zorba-xquery.com/modules/converters/base64";

Base64 encoding and decoding

Author:

Matthias Brantner

XQuery version and encoding for this module:

xquery version "1.0" encoding "utf-8";

Zorba version for this module:

The latest version of this module is 2.0. For more information about module versioning in Zorba please check out this resource.

Module Resources
Namespaces
base64 http://www.zorba-xquery.com/modules/converters/base64
ver http://www.zorba-xquery.com/options/versioning
Function Summary
External decode ( $base64 as xs:base64Binary ) as xs:string external
Decode a xs:base64Binary.
External encode ( $string as xs:string ) as xs:base64Binary external
Encode a xs:string as xs:base64Binary.
Functions
External decode back to 'Function Summary'
declare function base64:decode (
            $base64 as xs:base64Binary 
 ) as xs:string external

Decode a xs:base64Binary. The function assumes that the content after decoding is valid UTF-8.

Parameters:
Returns:

External encode back to 'Function Summary'
declare function base64:encode (
            $string as xs:string 
 ) as xs:base64Binary external

Encode a xs:string as xs:base64Binary.

Parameters:
Returns:

blog comments powered by Disqus