As part of a broader project, I need to download files to a Perspective session that exist in the Gateway server's filesystem. These files may be quite large, so I would prefer to avoid loading them entirely into Gateway memory before downloading if at all possible.
I am currently using system.file.readFileAsBytes(...) to obtain the raw data from the file and passing that to system.perspective.download(...), but of course the entire byte array is loaded at once.
system.perspective.download(...) indicates that it also accepts an InputStream datasource, but the API documentation is unclear as to whether this provides end-to-end data streaming to the Perspective session or if it still buffers the file in Gateway memory before pushing to session. Anyone have insight/experience with this?
Versions: 8.1.xx, 8.3.xx
Thanks in advance!
