Forwarding file stream to client in Blazor WebServer in .NET 8
I’m writing a Blazor WebServer application which, at one point, allows the client to download a file. This file is forwarded from another API, which offers it as an application/octet-stream
message, and according to the code snippet found in https://learn.microsoft.com/en-us/aspnet/core/blazor/file-downloads?view=aspnetcore-8.0, the block of code responsible of initiating the download looks like this