This is the data in xml format retrieved from the registryThis is the data retrieved from something that got it from the Registry and returned it to you in XML format.
<BASE64>AAAAAA==</BASE64>So the value you get should be decimal 11184810, in four bytes of binary. Trying to turn that into a String the way you are doing that is futile. You want something like
int value = new DataInputStream(new ByteArrayInputStream(base64.decode(strEncode))).readInt(); // or String value = new BigInteger(0, base64.decode(strEncode)).toString(10);
869447 wrote:Just to add to what EJP said, I don't know if DWORD specifies any sort of byte ordering or endian style, but Java numbers are all big-endian and specifically the BigInteger method he quoted expects the bytes in highest-first order - don't know about DataInputStream; it may even be configurable.
Thank u very much for ur help