Beispiel #1
0
        public IActionResult GetCardImage(string cardFileId, string bucketId, string cardId, string imageId, [FromQuery] CardImageSizeEnumContract?imageSize)
        {
            var imageSizeValue = imageSize ?? CardImageSizeEnumContract.Full;
            var result         = m_cardFileManager.GetImage(cardFileId, bucketId, cardId, imageId, imageSizeValue);

            return(File(result.Stream, result.MimeType, result.FileName, result.FileSize));
        }
Beispiel #2
0
 public Stream GetImage(string cardFileId, string bucketId, string cardId, string imageId, ImageSizeEnum imageSize)
 {
     return(m_cardFileManager.GetImage(cardFileId, bucketId, cardId, imageId, imageSize));
 }