Results 1 to 2 of 2
  1. #1
    torsion is offline Member
    Join Date
    Jun 2010
    Posts
    4
    Rep Power
    0

    Default Best way convert string to binary and back

    Hello!
    I need to to convert string ("Hello world!" for example) to binary ("11010010101") and after convert it back.
    What's the best way?

  2. #2
    lovelesh is offline Senior Member
    Join Date
    Nov 2010
    Location
    Delhi
    Posts
    135
    Blog Entries
    1
    Rep Power
    0

    Smile

    Give it try first and let us know when you are stuck.

    Hint: use BITWISE and SHIFT operators

Similar Threads

  1. convert interger value to binary value
    By ahmed80 in forum New To Java
    Replies: 6
    Last Post: 01-21-2011, 12:26 PM
  2. Convert String to Binary equivalent
    By vinayak.top in forum Advanced Java
    Replies: 1
    Last Post: 01-21-2011, 09:07 AM
  3. Convert String to Binary
    By erakhman in forum New To Java
    Replies: 1
    Last Post: 09-01-2010, 09:25 AM
  4. Replies: 4
    Last Post: 10-26-2009, 11:17 PM
  5. convert binary to images
    By fiqueudrue in forum New To Java
    Replies: 3
    Last Post: 02-12-2009, 10:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •