private static void GetFileContent(out byte[] fileContent, HttpPostedFileBase httpPostedFileBase) { using (var binaryReader = new BinaryReader(httpPostedFileBase.InputStream)) { fileContent = binaryReader.ReadBytes(httpPostedFileBase.ContentLength); } }