Skip to Main Content

New to Java

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!

Need help for converting String into byte[]

843789May 3 2010 — edited May 5 2010
Hello all,

1) i have byte[] which i read from binary file. which is like this byte[] bytes = [B@181d405
2) I use bytes.toString() for convert into String which is like this String ab = bytes.toString(); o/p for this is [B@181d405
3) Now my problem is i want to change this String into byte[] again & i want it's o/p as [B@181d405

Thanks in advance
Anu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2010
Added on May 3 2010
26 comments
806 views