title: Calculate the size to a Base 64 encoded message
body: <p>I have a binary string that I am encoding in Base 64. Now, I need to know before hand the size of the final Base 64 encoded string will be.</p>
  
  <p>Is there any way to calculate that?</p>
  
  <p>Something like:</p>
  
  <p>BinaryStringSize is 64Kb
  EncodedBinaryStringSize will be 127Kb after encoding.</p>
  
  <p>Oh, the code is in C.</p>
  
  <p>Thanks. </p>