c# get file size in byte from iformfile code example Example: c# get file size in bytes long _fileSize = new System.IO.FileInfo(filePath).Length;