Fundamentals
Components
Code Utilities
Demo
BcJsFileDownloadService
Description
The BcJsFileDownloadService provides utility functions to trigger file downloads directly from the browser. It supports downloading files from a given URL, from a byte array, or from a Base64-encoded string.
Method & Function Descriptions
DownloadFileFromUrl ( string url, string? fileName = null )
Starts downloading a file from the specified URL. Setting the filename may not work depending on the source.
Task
DownloadFileFromBytes ( string fileName, byte[] bytes )
Starts downloading a file. The file content must be provided as a byte array.
Task
DownloadFileFromBase64 ( string fileName, string base64 )
Starts downloading a file. The file content must be provided as a Base64 string. This is useful for exporting any text-based content.
Task