Skip to main content

 

Developing an Application

 

Applies only to Traditional Web Apps and Reactive Web Apps

 

OutSystems

Download a file through browser

You can send binary content to the browser, which makes the browser initiate the download. In some browsers or devices the download may begin immediately, while some first open a save dialog.

To send the file to the browser, use the Download Tool, and pass it the values for:

  • File Content - the binary content of the file
  • File Name - the name of the file that will be downloaded

For example, you can create a DownloadImageOnClick Action that takes the image binary and file name as the input parameters, and then pass those parameters to the Download Tool at the end of the Flow:

Adding link