I took the Web API template and made slight change to working endpoint for the download.
[HttpGet(Name = "GetWeatherForecast")]
public FileStream Get()
{
var path = @"C:\Users\user1\download.msi";
return new FileStream(path, FileMode.Open, FileAccess.Read);
}
It's a 100mb download and I'm getting Out of memory
when I trying download the file.