Пример #1
0
        public IActionResult GetDocumentByName(string name)
        {
            var document = _documentAppService.GetDocumentByName(name);
            var fullPath = Path.Combine(_settings.UploadDrive, _settings.DriveName);
            var file     = Path.Combine(fullPath, document.DocumentName);

            Byte[] bytes = System.IO.File.ReadAllBytes(file);
            return(File(bytes, "image/jpeg"));
        }