title: Encode Base64 String in Chunks in C#
body: <p>I have some files and I am saving it in isolated storage, how do I convert isolated stream to Base64 using chunks, If I convert stream directly to base64 then, base64 becomes too long, and  visual studio stopped working. So how to do using chunks? See my code below:</p>
  
  <pre><code>BinaryReader rdr = new BinaryReader(isofile);
  long lng = rdr.BaseStream.Length;
  int rr = Convert.ToInt32(lng);
  byte[] b = rdr.ReadBytes(rr);
  string str = Convert.ToBase64String(b);
  </code></pre>