I\'m looking for a way to convert a long string of binary to a hex string.
the binary string looks something like this \"01100110100101110010011101010111001101
You can take the input number four digit at a time. Convert this digit to ex ( as you did is ok ) then concat the string all together. So you obtain a string representing the number in hex, independetly from the size. Depending on where start MSB on your input string, may be the output string you obtain the way i described must be reversed.