public static String base64FromHex ( String hexValue ) throws IllegalArgumentException { byte [ ] binary = DatatypeConverter . parseHexBinary ( hexValue ) ; return base64FromBinary ( binary ) ; }
Decode the given hex string to binary and then re - encoded it as a Base64 string .