Answers for ".net Core Return File like File Server"

C#
0

.net Core Return File like File Server

public FileResult GetFile(string fileid)
{
   byte[] bytes = File.ReadAllBytes("C:\Temp.txt"); 
	return File(bytes, System.Net.Mime.MediaTypeNames.Application.Octet, "Temp.txt");
}
Posted by: Guest on December-09-2020

Code answers related to ".net Core Return File like File Server"

C# Answers by Framework

Browse Popular Code Answers by Language