Base64

Attributes

URI:http://www.xmlpipe.org/xpe/util/filter/base64
Type:filter
Namespace:http://www.xmlpipe.org/xpe/util
Owner:http://www.xmlpipe.org/xpe

Description

This filter encodes and decodes a binary resource into and from base64 encoding.

Encode a resource into base64


   <b:encode  href="{resource uri}"  mime="{mime type}"  suffix="{filename suffix}"  xmlns:b="http://www.xmlpipe.org/xpe/base64" />

The above XML fragement instructs the filter to encode the resource specified by the href attribute to base64 encoding. The filter changes the above XML fragment into:


   <b:base64  mime="{mime type}"  xmlns:b="http://www.xmlpipe.org/xpe/base64" >
      {base64 string}
   </b:base64>

Decode base64 into resource

Applying the filter to a base64 element:


   <b:base64  xmlns:b="http://www.xmlpipe.org/xpe/base64" >
      {base64 string}
   </b:base64>

turns the xml fragment into:


   <b:resource  href="{resource uri}"  mime="{mime type}"  xmlns:b="http://www.xmlpipe.org/xpe/base64" />