title: Convert large httppostedfilebase to byte[]
body: <p>I want to convert httppostedfilebase type to byte[] type.
  I use this code : </p>
  
  <pre><code>    private static byte[] ConverToBytes(HttpPostedFileBase file)
      {
          int fileSizeInBytes = file.ContentLength; //134675091 (129MB)
          MemoryStream target = new MemoryStream();
          file.InputStream.CopyTo(target);//System.OutOfMemoryException
          byte[] data = target.ToArray();
  
          return data;
      }
  </code></pre>
  
  <p>When I use this code, I get the <code>System.OutOfMemoryException.</code></p>
  
  <p>any soulotion about it</p>