Exemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            Picture image = await _pictureService.ByIdAsync(id);

            byte[] imageInBinary = image.ImageData;

            return(File(imageInBinary, "image/png"));
        }