コード例 #1
0
        public async Task <IActionResult> GetImagePreview(string dir, string name, int number)
        {
            var array = await _imageService.GetImagePreviewAsync(dir, name, number);

            return(File(array, "image/jpeg"));
        }