From: Joe W. <jo...@gm...> - 2010-09-08 00:40:27
|
Hi Gary, > It seems I cannot use the util:base64-encode function, every time I try an > error message like "Function util:base64-encode() is not defined in module > namespace: http://exist-db.org/xquery/util" appears. Indeed I cannot even > find this function reference while browsing the function library using > localhost/exist; although other util functions are present such as hash, > base-to-integer, call, etc. are present. I currently run eXist version: > 1.4.0, build: 20091111. Could there be something wrong with my installation > or configuration? The problem is that the util:base64-encode() function was added to 1.5dev trunk (rev. 11441, see http://exist.svn.sourceforge.net/exist/?rev=11441&view=rev, dated March 13, 2010), so it wasn't available in 1.4.0, and I don't believe Andrzej has ported this function back to 1.4.x-stable. Andrzej - I'm not sure if it's suitable to be ported back or not? Joe Revision: 11441 http://exist.svn.sourceforge.net/exist/?rev=11441&view=rev Author: chaeron Date: 2010-03-13 00:43:19 +0000 (Sat, 13 Mar 2010) Log Message: ----------- Added base64 encode/decode functions to util along iwth a unit test. These functions operate on strings and thus are easier and more intuitive to use than the string-to-binary function, which relies on a side effect to accomplish base64 encoding and returns a base64binary item. |