Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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

PREVIOUS NEXT
Code Example
Csharp :: get random color 32 
Csharp :: covert char[] to string C# 
Csharp :: make window not resizable wpf 
Csharp :: c# dictionary initializer 
Csharp :: c# substring from end 
Csharp :: jump in unity 
Csharp :: key value pair in c# 
Csharp :: c# run loop x times 
Csharp :: remove comma from string c# 
Csharp :: clear controls from panel c# 
Csharp :: C# get key by value Dict 
Csharp :: convert string into double in c# 
Csharp :: Open another form with C# Winforms 
Csharp :: if button is pressed unity 
Csharp :: how to get the hour on c# 
Csharp :: unity show colliders 
Csharp :: c# byte array to file 
Csharp :: unity random number 
Csharp :: failed to read the request form. missing content-type boundary .net core 
Csharp :: rotate player unity 2d left and right 
Csharp :: No Entity Framework provider found for the ADO.NET provider with invariant name 
Csharp :: create sequence of squares in c# 
Csharp :: unity raycast 2d 
Csharp :: parse datetime c# 
Csharp :: c# get list of all class fields 
Csharp :: connection string in asp.net with username and password 
Csharp :: how can prevent the empty input in jquery 
Csharp :: play sound in unity c# 
Csharp :: dns ttl meaning 
Csharp :: c# console password 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =