I try to get bytes from file using this method
byte[] b1;
using (var fs = new FileStream(path, FileMode.Open, FileAccess.Read))
{
b1= new byte[fs.Length];
int bytesRead = fs.Read(b1, 0, b1.Length);
}
but when i test it with file size = 4.9GB its throw exception say Arithmetic operation resulted in an overflow.