Click here to Skip to main content
16,018,650 members

Comments by NewButTryingHard (Top 1 by date)

NewButTryingHard 24-Jul-23 13:58pm View    
Thank you. I have been really googling "read the file and return it". I believe that would look something like:

@code {
public Byte[] DownloadFile()
{
Byte[] bytes = File.ReadAllBytes("D:\\Recordings\\a.mp3");

return File(bytes, "audio/mp3");
}
}

Am I even in the ballpark?