FileInfo fileInfo = new FileInfo(Server.MapPath("~/Images/logo.gif")); double fileSizeKB = fileInfo.Length / 1024; double fileSizeMB = fileInfo.Length / (1024 * 1024);
pre
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)