Ebele
Ebele

Reputation: 31

converting xml document to byte array in Java

I am trying to convert an arbitrary Xml Document to a byte array so that it can be encoded using Base64. Can anybody help me with how to go about this. Also, what's the easiest api to use for base64 encoding in Java?

Thanks.

Upvotes: 2

Views: 7490

Answers (1)

Anonymous
Anonymous

Reputation: 36

The easiest API for base64 encoding is probably Commons Codec.

Upvotes: 1

Related Questions