Converting a string into binary and back










0














I got an assignment to convert a given string into binary and back to a string again.



The first part was easy






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





However I cannot get my head around how to break the resulting string into their bytes. I tried this so far:






function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));





How can I convert a byte into a character again? And it also feels a bit odd. Is there a better, faster way to collect those bytes










share|improve this question























  • Possible duplicate of Converting Binary to text using javascript
    – Tigger
    Nov 11 at 10:04















0














I got an assignment to convert a given string into binary and back to a string again.



The first part was easy






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





However I cannot get my head around how to break the resulting string into their bytes. I tried this so far:






function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));





How can I convert a byte into a character again? And it also feels a bit odd. Is there a better, faster way to collect those bytes










share|improve this question























  • Possible duplicate of Converting Binary to text using javascript
    – Tigger
    Nov 11 at 10:04













0












0








0







I got an assignment to convert a given string into binary and back to a string again.



The first part was easy






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





However I cannot get my head around how to break the resulting string into their bytes. I tried this so far:






function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));





How can I convert a byte into a character again? And it also feels a bit odd. Is there a better, faster way to collect those bytes










share|improve this question















I got an assignment to convert a given string into binary and back to a string again.



The first part was easy






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





However I cannot get my head around how to break the resulting string into their bytes. I tried this so far:






function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));





How can I convert a byte into a character again? And it also feels a bit odd. Is there a better, faster way to collect those bytes






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
return char.charCodeAt(0).toString(2)
).join('');


alert(stringToBinary('test'))





function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));





function binaryToString(input) 
var bits = input.split('');

var byte = '';
return bits.map(function(bit)
byte = byte + bit;

if (byte.length == 8)
var char = byte; // how can I convert this to a character again?
byte = '';
return char;


return '';
).join('');


alert(binaryToString('1110100110010111100111110100'));






javascript character






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 10:51









Nina Scholz

174k1387152




174k1387152










asked Nov 11 at 9:59









ger616c64

163




163











  • Possible duplicate of Converting Binary to text using javascript
    – Tigger
    Nov 11 at 10:04
















  • Possible duplicate of Converting Binary to text using javascript
    – Tigger
    Nov 11 at 10:04















Possible duplicate of Converting Binary to text using javascript
– Tigger
Nov 11 at 10:04




Possible duplicate of Converting Binary to text using javascript
– Tigger
Nov 11 at 10:04












3 Answers
3






active

oldest

votes


















1














There is a problem with your stringToBinary function. Converting a character to binary only leaves you with the least amount of bits. So you still need to convert it to an 8-bit string.



The other thing is, that you can just get the first 8 digits from your binary and trim your input as you go, like in the following example.






function stringToBinary(input) 
var characters = input.split('');

return characters.map(function(char)
const binary = char.charCodeAt(0).toString(2)
const pad = Math.max(8 - binary.length, 0);
// Just to make sure it is 8 bits long.
return '0'.repeat(pad) + binary;
).join('');


function binaryToString(input)
let bytesLeft = input;
let result = '';

// Check if we have some bytes left
while (bytesLeft.length)
// Get the first digits
const byte = bytesLeft.substr(0, 8);
bytesLeft = bytesLeft.substr(8);

result += String.fromCharCode(parseInt(byte, 2));


return result;


const binary = stringToBinary('test');
console.log(binaryToString(binary));








share|improve this answer




















  • Thanks, that really helped! I didn't know that I need leading zeros here.
    – ger616c64
    Nov 11 at 10:38










  • When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
    – lumio
    Nov 11 at 10:53


















0














I hope the following links will help to your questions.



Converting Binary to text using javascript



How to convert text to binary code in JavaScript?






share|improve this answer




























    0














    First of all, you need to take the same length of the converted string as input for the conversion back to a string, by taking String#padStart with a length of 8 and a filling character of zero.






    function stringToBinary(input) 
    var characters = input.split('');

    return characters
    .map(function(char)
    return char.charCodeAt(0).toString(2).padStart(8, 0)
    )
    .join(' '); // show with space for each byte
    // watch leading zero, which is missed in the former code


    console.log(stringToBinary('test'))





    The you need to take this string and split it into a length of eight characters and convert it back.






    function binaryToString(input) 
    return input
    .match(/.8/g) // take 8 characters
    .map(function(byte)
    return String.fromCharCode(parseInt(byte, 2));
    )
    .join('');


    console.log(binaryToString('01110100011001010111001101110100'));





    While you are asking for a faster way, you could spread the splitted converted bytes to the fromCharCode function.






    function binaryToString(input) 
    return String
    .fromCharCode(...input
    .match(/.8/g)
    .map(byte => parseInt(byte, 2))
    );


    console.log(binaryToString('01110100011001010111001101110100'));








    share|improve this answer






















    • Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
      – ger616c64
      Nov 11 at 10:37











    • no, it is just to show the leading zero and the length of eight characters.
      – Nina Scholz
      Nov 11 at 10:49










    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247588%2fconverting-a-string-into-binary-and-back%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    There is a problem with your stringToBinary function. Converting a character to binary only leaves you with the least amount of bits. So you still need to convert it to an 8-bit string.



    The other thing is, that you can just get the first 8 digits from your binary and trim your input as you go, like in the following example.






    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));








    share|improve this answer




















    • Thanks, that really helped! I didn't know that I need leading zeros here.
      – ger616c64
      Nov 11 at 10:38










    • When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
      – lumio
      Nov 11 at 10:53















    1














    There is a problem with your stringToBinary function. Converting a character to binary only leaves you with the least amount of bits. So you still need to convert it to an 8-bit string.



    The other thing is, that you can just get the first 8 digits from your binary and trim your input as you go, like in the following example.






    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));








    share|improve this answer




















    • Thanks, that really helped! I didn't know that I need leading zeros here.
      – ger616c64
      Nov 11 at 10:38










    • When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
      – lumio
      Nov 11 at 10:53













    1












    1








    1






    There is a problem with your stringToBinary function. Converting a character to binary only leaves you with the least amount of bits. So you still need to convert it to an 8-bit string.



    The other thing is, that you can just get the first 8 digits from your binary and trim your input as you go, like in the following example.






    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));








    share|improve this answer












    There is a problem with your stringToBinary function. Converting a character to binary only leaves you with the least amount of bits. So you still need to convert it to an 8-bit string.



    The other thing is, that you can just get the first 8 digits from your binary and trim your input as you go, like in the following example.






    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));








    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));





    function stringToBinary(input) 
    var characters = input.split('');

    return characters.map(function(char)
    const binary = char.charCodeAt(0).toString(2)
    const pad = Math.max(8 - binary.length, 0);
    // Just to make sure it is 8 bits long.
    return '0'.repeat(pad) + binary;
    ).join('');


    function binaryToString(input)
    let bytesLeft = input;
    let result = '';

    // Check if we have some bytes left
    while (bytesLeft.length)
    // Get the first digits
    const byte = bytesLeft.substr(0, 8);
    bytesLeft = bytesLeft.substr(8);

    result += String.fromCharCode(parseInt(byte, 2));


    return result;


    const binary = stringToBinary('test');
    console.log(binaryToString(binary));






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 11 at 10:31









    lumio

    4,40622136




    4,40622136











    • Thanks, that really helped! I didn't know that I need leading zeros here.
      – ger616c64
      Nov 11 at 10:38










    • When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
      – lumio
      Nov 11 at 10:53
















    • Thanks, that really helped! I didn't know that I need leading zeros here.
      – ger616c64
      Nov 11 at 10:38










    • When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
      – lumio
      Nov 11 at 10:53















    Thanks, that really helped! I didn't know that I need leading zeros here.
    – ger616c64
    Nov 11 at 10:38




    Thanks, that really helped! I didn't know that I need leading zeros here.
    – ger616c64
    Nov 11 at 10:38












    When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
    – lumio
    Nov 11 at 10:53




    When you use a transpiler (like babel) or you don't care about IE11 you can also use padStart like in Nina Scholz' answer.
    – lumio
    Nov 11 at 10:53













    0














    I hope the following links will help to your questions.



    Converting Binary to text using javascript



    How to convert text to binary code in JavaScript?






    share|improve this answer

























      0














      I hope the following links will help to your questions.



      Converting Binary to text using javascript



      How to convert text to binary code in JavaScript?






      share|improve this answer























        0












        0








        0






        I hope the following links will help to your questions.



        Converting Binary to text using javascript



        How to convert text to binary code in JavaScript?






        share|improve this answer












        I hope the following links will help to your questions.



        Converting Binary to text using javascript



        How to convert text to binary code in JavaScript?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 11 at 10:04









        Gehan Fernando

        525414




        525414





















            0














            First of all, you need to take the same length of the converted string as input for the conversion back to a string, by taking String#padStart with a length of 8 and a filling character of zero.






            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            The you need to take this string and split it into a length of eight characters and convert it back.






            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            While you are asking for a faster way, you could spread the splitted converted bytes to the fromCharCode function.






            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));








            share|improve this answer






















            • Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
              – ger616c64
              Nov 11 at 10:37











            • no, it is just to show the leading zero and the length of eight characters.
              – Nina Scholz
              Nov 11 at 10:49















            0














            First of all, you need to take the same length of the converted string as input for the conversion back to a string, by taking String#padStart with a length of 8 and a filling character of zero.






            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            The you need to take this string and split it into a length of eight characters and convert it back.






            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            While you are asking for a faster way, you could spread the splitted converted bytes to the fromCharCode function.






            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));








            share|improve this answer






















            • Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
              – ger616c64
              Nov 11 at 10:37











            • no, it is just to show the leading zero and the length of eight characters.
              – Nina Scholz
              Nov 11 at 10:49













            0












            0








            0






            First of all, you need to take the same length of the converted string as input for the conversion back to a string, by taking String#padStart with a length of 8 and a filling character of zero.






            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            The you need to take this string and split it into a length of eight characters and convert it back.






            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            While you are asking for a faster way, you could spread the splitted converted bytes to the fromCharCode function.






            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));








            share|improve this answer














            First of all, you need to take the same length of the converted string as input for the conversion back to a string, by taking String#padStart with a length of 8 and a filling character of zero.






            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            The you need to take this string and split it into a length of eight characters and convert it back.






            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            While you are asking for a faster way, you could spread the splitted converted bytes to the fromCharCode function.






            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));








            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            function stringToBinary(input) 
            var characters = input.split('');

            return characters
            .map(function(char)
            return char.charCodeAt(0).toString(2).padStart(8, 0)
            )
            .join(' '); // show with space for each byte
            // watch leading zero, which is missed in the former code


            console.log(stringToBinary('test'))





            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            function binaryToString(input) 
            return input
            .match(/.8/g) // take 8 characters
            .map(function(byte)
            return String.fromCharCode(parseInt(byte, 2));
            )
            .join('');


            console.log(binaryToString('01110100011001010111001101110100'));





            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));





            function binaryToString(input) 
            return String
            .fromCharCode(...input
            .match(/.8/g)
            .map(byte => parseInt(byte, 2))
            );


            console.log(binaryToString('01110100011001010111001101110100'));






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Nov 11 at 10:50

























            answered Nov 11 at 10:10









            Nina Scholz

            174k1387152




            174k1387152











            • Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
              – ger616c64
              Nov 11 at 10:37











            • no, it is just to show the leading zero and the length of eight characters.
              – Nina Scholz
              Nov 11 at 10:49
















            • Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
              – ger616c64
              Nov 11 at 10:37











            • no, it is just to show the leading zero and the length of eight characters.
              – Nina Scholz
              Nov 11 at 10:49















            Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
            – ger616c64
            Nov 11 at 10:37





            Thank you! That really helps. I didn't know that I need leading zeros. So is your solution expecting me to create the binary string with spaces?
            – ger616c64
            Nov 11 at 10:37













            no, it is just to show the leading zero and the length of eight characters.
            – Nina Scholz
            Nov 11 at 10:49




            no, it is just to show the leading zero and the length of eight characters.
            – Nina Scholz
            Nov 11 at 10:49

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53247588%2fconverting-a-string-into-binary-and-back%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kleinkühnau

            Makov (Slowakei)

            Deutsches Schauspielhaus