asp.net mvc return file
byte[] fileBytes = System.IO.File.ReadAllBytes(@"c:\folder\myfile.ext");
string fileName = "myfile.ext";
return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, fileName);
Also in C#:
- check which activity in focus in android
- c# events and delegates
- c# razor add disabled to button if
- fieldconverter c#
- c# sort array
- C# how to get public key for InternalsVisibleTo
- add text to combobox c#
- how to get length of okobjectresult c#
- unity how to make a ui disappear
- c# implement ienumerable t
- .net core copy file in folder to root
- why is c# say ; expected
- c# is not equal to
- check for collision unity c#
- compose graphql query string in c#
- c# arraylist to listview
- generics in c#
- c# array.clone
- asp net mvc 5 return view from another controller
- convert array object to int[] c#
- regex replace all special characters
- unity list length
- c# how to exit program
- unity 2d detect click on sprite