title: Is there a Base64Stream for .NET?
body: <p>If I want to produce a Base64-encoded output, how would I do that in .NET?</p>
  
  <p>I know that since .NET 2.0, there is the <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.icryptotransform.aspx" rel="noreferrer">ICryptoTransform</a> interface, and the 
  <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.tobase64transform.aspx" rel="noreferrer">ToBase64Transform()</a> and <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.frombase64transform.aspx" rel="noreferrer">FromBase64Transform()</a> implementations of that interface. </p>
  
  <p>But those classes are embedded into the System.Security namespace, and require the use of a TransformBlock, TransformFinalBlock, and so on.  </p>
  
  <p>Is there an easier way to base64 encode a stream of data in .NET?</p>