Answers for "retrieve the "stream" of the photo and store the image in a folder on the api side"

C#
2

c# web api return image file

[HttpGet]
public IActionResult Get()
{            
    Byte[] b = System.IO.File.ReadAllBytes(@"E:\Test.jpg");   // You can use your own method over here.         
    return File(b, "image/jpeg");
}
Posted by: Guest on October-12-2020

Code answers related to "retrieve the "stream" of the photo and store the image in a folder on the api side"

C# Answers by Framework

Browse Popular Code Answers by Language