110,533
社区成员
发帖
与我相关
我的任务
分享
FileInfo fi = new FileInfo(FilePath);
FileName = fi.Name;
byte[] bData = null;
// Read file data into buffer
using (FileStream fs = fi.OpenRead())
{
bData = new byte[fi.Length];//到这一步就报错:Arithmetic operation resulted in an overflow.
int nReadLength = fs.Read(bData, 0, (int)(fi.Length));