Have a look at Commons Codec :
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex;
byte[] decodedHex = Hex.decodeHex(hex);
byte[] encodedHexB64 = Base64.encodeBase64(decodedHex);
More Related Contents:
- Decode Base64 data in Java
- Encoding as Base64 in Java
- Base 64 encode and decode example code
- Base64 Java encode and decode a string [duplicate]
- Convert base64 string to image
- Java – Convert image to Base64
- Base64 encoder and decoder
- Range of valid character for a base 64 encoding
- Storing UUID as base64 String
- Out of memory when encoding file to base64
- Does anyone know how to decode and encode a string in Base64 using Base64?
- Write Base64-encoded image to file
- Convert byte[] to Base64 string for data URI
- Java Encode file to Base64 string To match with other encoded string
- How/Can I use base64 as image source in a Jasper Report template?
- How to convert an Image to base64 string in java? [duplicate]
- Java BufferedImage to PNG format Base64 String
- What would be the value of variable after executing the following statement
- How to use output from a splited sms [closed]
- IDEA: javac: source release 1.7 requires target release 1.7
- Java Compare Two Lists
- Java String replace not working [duplicate]
- Using iTextPDF to trim a page’s whitespace
- How to tell a Mockito mock object to return something different the next time it is called?
- Why does Stream not implement Iterable?
- Java, How to implement a Shift Cipher (Caesar Cipher)
- Registering a headset button click with BroadcastReceiver in Android
- Test for floating point equality. (FE_FLOATING_POINT_EQUALITY)
- What’s a monitor in Java?
- How to get the parent base class object super.getClass()