zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #24635
[Merge] lp:~zorba-coders/zorba/new-base64-api-data-formatting into lp:zorba/data-formatting-module
Paul J. Lucas has proposed merging lp:~zorba-coders/zorba/new-base64-api-data-formatting into lp:zorba/data-formatting-module.
Commit message:
New Base64 API.
Requested reviews:
Paul J. Lucas (paul-lucas)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/new-base64-api-data-formatting/+merge/177951
New Base64 API.
--
https://code.launchpad.net/~zorba-coders/zorba/new-base64-api-data-formatting/+merge/177951
Your team Zorba Coders is subscribed to branch lp:zorba/data-formatting-module.
=== modified file 'src/com/zorba-xquery/www/modules/xsl-fo.xq.src/xslfo.cpp'
--- src/com/zorba-xquery/www/modules/xsl-fo.xq.src/xslfo.cpp 2013-06-21 04:20:59 +0000
+++ src/com/zorba-xquery/www/modules/xsl-fo.xq.src/xslfo.cpp 2013-07-31 22:10:39 +0000
@@ -231,8 +231,9 @@
std::string lBinaryString((const char*) dataElements, dataSize);
std::stringstream lStream(lBinaryString);
- String base64S( base64::encode(lStream) );
- Item lRes( theFactory->createBase64Binary(base64S.c_str(), base64S.length(), true) );
+ String base64S;
+ base64::encode(lStream, &base64S);
+ Item lRes( theFactory->createBase64Binary(base64S.data(), base64S.size(), true) );
return ItemSequence_t(new SingletonItemSequence(lRes));
} catch (zorba::jvm::VMOpenException&) {
Item lQName = theFactory->createQName("http://www.zorba-xquery.com/modules/xsl-fo",
Follow ups