Use Commons Codec from Apache Site
http://jakarta.apache.org/commons/codec/in package org.apache.commons.codec.binary
there is one class Base64
use static method :
* decodeBase64(byte[] base64Data)
* encodeBase64(byte[] binaryData)
* and be careful it works in array of bytes not String
* so beware of character encoding for Converting between your String to array of bytes.
Hopes this help you.
Comment/Reply (w/o sign-up)