title: Handle Convert.ToBase64String out of memory exception when converting to string
body: <p>When I try to do the following with <code>.zip</code> folder witch contains some videos I get out of memory exeption.</p>
  
  <pre><code>Byte[] bytes = File.ReadAllBytes(@"C:\folderWithVideos.zip");  
  String base64File= Convert.ToBase64String(bytes);//&lt;----- out of memory exception
  </code></pre>
  
  <p>How to handle this exception properly? I mean without <code>try-catch</code>, I have tried something like:</p>
  
  <pre><code>String base64File;
  if (bytes.Length &lt;= System.Int32.MaxValue)
     base64File = Convert.ToBase64String(bytes);
  </code></pre>
  
  <p>But it didn't helped, but <code>bytes.Length &lt;= 255</code> did helped, but I'm not sure that 255 is the right number.</p>