Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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");
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity object change sprite 
Csharp :: asp.net data annotations double 
Csharp :: where did mark twain go to school 
Csharp :: c# color hex 
Csharp :: how to close an application in c# 
Csharp :: c# print console 
Csharp :: unity key up 
Csharp :: capitalize c# 
Csharp :: c# distinct by property 
Csharp :: convert string to int c# 
Csharp :: OnMousedown unity ui 
Csharp :: c# foreach on a dictionary 
Csharp :: how to put double quotes in a string c# 
Csharp :: how to look for substring in string in c# 
Csharp :: c# save pdf to folder 
Csharp :: how to store an array inside an array c# 
Csharp :: asp.net core get root url in view 
Csharp :: get value from config file c# 
Csharp :: HOW TO RETURN CELL VALUE FROM EXCEL IN C# 
Csharp :: c# input 
Csharp :: c# linq select only unique values from list 
Csharp :: get index c# 
Csharp :: .net core check if linux 
Csharp :: Squares of a Sorted Array 
Csharp :: c# insert spaces before capital letters 
Csharp :: 2d list c# 
Csharp :: c# open file for reading and writing 
Csharp :: nunjucks index in loop 
Csharp :: .net core partial view with model 
Csharp :: how to check if List<T element contains an item with a Particular Property Value in c# 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =