DigipostClientLibWebapp.Controllers.SendController.GetFileContent C# (CSharp) Method

GetFileContent() private static method

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