Hi Daniel.

http://jakarta.apache.org/commons/codec/

contains a Base64 encoder/decoder you can use to convert byte arrays into base64 and back. For a "longtime C++ guy" you'll find it very easy to use, I'm sure ;)

Regards,

Malcolm

http://www.congreve.com


Daniel Morrow wrote:
Dear list,

I have a Document. Some of the nodes in the document contain byte []'s. When it outputs these things to text, it writes out the hex- string of the bytes. That's all well and good, but I'd really like to find a way to output this stuff as a base64 string.

Some quick background (in case my question sounds totally dense) - I'm a longtime C++ guy, who recently got assigned the job of bringing a .NET web service over to one based in Java. So, I've been swamped with reading about Eclipse, Hibernate, Axis and now Dom4j, and of course, Java. Did I mention I've never written any Java before, but I'm generally enjoying it?

So, I'm writing a web-service, that uses Hibernate to read info out of a database. Then I'm building a Document from those Hibernate classes, and generating a large XML document, using the XMLWriter.

So, I guess I'm wondering if anyone has generated XML output from a document, and had some of the text be output as base64 text? If so, I could use your advice.

Thanks,
-Dan.



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to