title: byte array out of memory in c# 2
body: <pre><code>FileStream fs = File.OpenRead(fullFilePath);
  try
  {
      Console.WriteLine("Read file size is : " + fs.Length);
      byte[] bytes = new byte[fs.Length]; //// **error this line**
      fs.Read(bytes, 0, Convert.ToInt32(fs.Length));
      fs.Close();
      return bytes;
  }
  finally
  {
      fs.Close();
  }
  </code></pre>
  
  <p><code>read file size 2,885,760 KB</code>. is error // </p>
  
  <p><code>**Arithmetic operation resulted in an overflow.**</code></p>