Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 22nd, 2011, 01:45 AM
Registered User
Join Date: Jul 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Conversion of Base64 Encoded REG_DWORD to ordinary string

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));
String strkey= new String(Base64.decodeBase64(strencode));
String strkey1="0x"+new String(Hex.encodeHex(Base64.decodeBase64(strencode )));

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

With regards

Similar Threads
Thread Thread Starter Forum Replies Last Post
numeric to string conversion dowens VBScript 1 May 25th, 2007 04:11 PM
Decoding Base64 Encoded Data and saving the image mookashi XML 14 August 3rd, 2006 05:52 PM
Base64-encoded files harpua Classic ASP Professional 2 June 19th, 2006 12:04 PM
string character conversion Neal XSLT 2 February 23rd, 2006 08:23 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.