Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

.net Core Get File Request

public FileResult GetFile(string fileid)
{
   byte[] bytes = File.ReadAllBytes("C:Temp.txt"); 
	return File(bytes, System.Net.Mime.MediaTypeNames.Application.Octet, "Temp.txt");
}
 
PREVIOUS NEXT
Tagged: #Core #Get #File #Request
ADD COMMENT
Topic
Name
5+4 =