title: How to bypass HttpRequestValidationException for just one request value without encoding the value?
body: <p>Stipulation: Cannot use base64 encoding. I've been told to not increase the payload any more than necessary, which base64 will do.</p>
  
  <p>Preferred: Setting <code>requestValidationMode</code> for single page to 2.0, but <a href="http://www.west-wind.com/weblog/posts/2010/Aug/19/RequestValidation-Changes-in-ASPNET-40" rel="nofollow">I don't think this is possible</a>.</p>
  
  <p>Scenario: User browses and selects image. Front-end will grab the image using, <a href="https://developer.mozilla.org/en-US/docs/Web/API/FileReader?redirectlocale=en-US&amp;redirectslug=DOM/FileReader#readAsDataURL%28%29" rel="nofollow"><code>FileReader.readAsDataUrl(f)</code></a>, then base64 decode it (leaving me with the equivalent of <a href="https://developer.mozilla.org/en-US/docs/Web/API/FileReader?redirectlocale=en-US&amp;redirectslug=DOM/FileReader#readAsBinaryString%28%29" rel="nofollow"><code>FileReader.readAsBinaryString(f)</code></a>, but isn't IE10 compatible), and send it to my IHttpHandler via AJAX.</p>
  
  <p>Currently, this will throw an <code>HttpRequestValidationException</code>, because the binary data includes characters that are potentially harmful. This is not a concern, because our back-end will verify the data. How do I fix/bypass this expection on just this data alone?</p>