This my API..
- [HttpGet]
- public IActionResult Get()
- {
- Byte[] b = System.IO.File.ReadAllBytes(@"E:\\Test.jpg");
-
- return File(b, "image/jpeg");
- }
i m getting responce as File,, I am reading this responce as
var responce = request.Content.ReadAsByteArrayAsync().Result;
i want ot create Object url for this in mvc controller and wanted to set objUrl to src of image tag in View