I am trying to getting image from BlobUrl, but it cant render in the browser.
My code controller:
[HttpGet]
public System.Drawing.Image GetImage()
{
var profileImage = Db.Candidate.Include(x => x.ProfileImage).AsNoTracking().Single().ProfileImage;
var urlWithSharedAccessToken = _fileService.GetBlobUrl(profileImage.FileGuid, DateTime.Now.AddHours(1));
WebClient wc = new WebClient();
byte[] bytes = wc.DownloadData(urlWithSharedAccessToken);
MemoryStream ms = new MemoryStream(bytes);
System.Drawing.Image img = System.Drawing.Image.FromStream(ms);
return img;
}
Below is the browser response:
Can anybody tell me, what should I do to render the actual image from System.Drawing.Image