How to read a server file and output that as a downloadable file in users web browser in XPages
问题 I need to read a file (that is not available on web) on the server and output it to the user as a downloadable file. The scenario is The user click a link from an XPage The request is sent to the server which reads a predefined file in the server file system The file is brought back to the user as a downloadable file in the webbrowser. The file on the server can be in any format, e.g .pdf, .exe, .doc etc It does not matter if this is done on SSJS or in java. I would really appreicate some