Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Conversion of Base64 Encoded REG_DWORD to ordinary string

872450Jul 22 2011 — edited Jul 22 2011
How can i convert a Base64 encoded DWORD to a normal string using java.
Actually REG_DWORD and REG_BINARY is the value obtained as value for a particular registry entry.So i have to decode it and display the actual result.

I have used the following code but was not successful

String strkey= new String(new BASE64Decoder().decodeBuffer(strencode));
OR
String strkey= new String(Base64.decodeBase64(strencode));
OR
String strkey1="0x"+new String(Hex.encodeHex(Base64.decodeBase64(strencode)));

Can anyone help me in this matter
Help will be very much grateful

Thanks
With regards
Manoj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2011
Added on Jul 22 2011
7 comments
1,275 views