title: ASP.NET Base64 string corruption
body: <p>I am passing an object from one asp.net page to another.  I'm encoding the object as a Base64 string and passing it as a POST parameter.  However, when the receiving page reads the POST value, if there is a + sign in the Base64 string, it is being replaced with a line break.  For example:</p>
  
  <pre><code> ...AABDEDS+DFEAED...
  </code></pre>
  
  <p>becomes</p>
  
  <pre><code> ...AABDEDS
   DFEAED...
  </code></pre>
  
  <p>I compared the Base64 string immediately after encoding in the sending page to the string immediately before decoding in the receiving page and that is the only difference.  I tried HtmlEncoding() the base64 string prior to writing it to the request stream, but that had no effect, so it seems to be an issue on the receiving end.</p>
  
  <p>Any ideas?</p>