Okay, I see what you mean now.
so if I give my string as "foo".. it gives me binary string as 01100110 01101111 01101111
Now, I need to convert this binary number to ascii value. How do I do this ?
Well, your first step, as it always is with programming, is to figure out how you would do this "manually", without Java. What are the small, simple, precise steps?