jasper reports downloaded to the client? (client == webclient?)
That will not happen
If you want to stream a file to the browser/client then what harjo told you is correct
plugins.file.writefile(‘myfile.pdf’, binaryPDFData,‘application/pdf’)
the 1st argument should be a String! not a File object on the server! Because if it is a file object it will try to save it on the server…
the 2d argument is the binary pdf data that you want to stream
the 3th argument is the mime type. For a pdf this shouldnt really be needed we will do that also for you, but if you know for sure you can set it yourself.
If you do that then normally that pdf should be opened by adobe reader inside or outside the browser. (if reader is installed ofcourse)
If it just directly saves it, then that is a setting you made in your browser