My input hex is
C30A010000003602000F73B32F9ECA00E9F2F2E9
I need to convert it to the following base 64 encoded String:
wwoBAAAANgIAD3OzL57KAOny8uk=
I can simulate this transformation on this site: http://www.asciitohex.com/ but I cant seem to get this transformation working in Java using the various base64 encoder Utils that are suggested on this site and other places on the web. For example,
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Base64;
public class Test {
public static void main(final String args[]) throws DecoderException {
String hexString = "C30A010000003602000F73B32F9ECA00E9F2F2E9";
String output = new String(Base64.encodeBase64String(hexString.getBytes()));
System.out.println(output);
}
However the output for this is something different:
QzMwQTAxMDAwMDAwMzYwMjAwMEY3M0IzMkY5RUNBMDBFOUYyRjJFOQ==
Can anyone suggest how to get this transformation working successfully?
Thanks