-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
dotnet/AspNetCore.Docs
#23690Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationDoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future
Milestone
Description
Hi, looking around for the answer to the question "how to download a file with blazor server", several approaches are suggested, but it's not clear what the best solution is.
I found samples using controller, razor page, javascript interop, and some others hacks.
Is there a best practice regarding this topic ?
In the specific case, if I've a PDF file (but it could be anything else) content as byte[], what is the officially recommended method to generate a download in the browser ?
Thanks
Metadata
Metadata
Assignees
Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationDoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-blazor-builtin-componentsFeatures related to the built in components we ship or could ship in the futureFeatures related to the built in components we ship or could ship in the future