title: Converting long string of binary to hex c#
body: <p>I'm looking for a way to convert a long string of binary to a hex string.</p>
  
  <p>the binary string looks something like this <code>"0110011010010111001001110101011100110100001101101000011001010110001101101011"</code></p>
  
  <p>I've tried using </p>
  
  <pre><code>hex = String.Format("{0:X2}", Convert.ToUInt64(hex, 2));
  </code></pre>
  
  <p>but that only works if the binary string fits into a Uint64 which if the string is long enough it won't.</p>
  
  <p>is there another way to convert a string of binary into hex?</p>
  
  <p>Thanks</p>