https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...
Am I missing something? I am saving the data inside response.Data to the fileDestinationPath, which works but it also saves to the database stream folder and never gets purged.
I understand I have to use TmpBinary instead but what is the point of keeping a copy in the stream folder when the code has finished executing? the files are also not named in a way that makes them recognizable other than their extension and file size.
Basically the file is saved to both the location I set at fileDestinationPath and the stream folder where the database file resides.
That's probably it - thank you, but what is the point of permanently storing the stream on disk when the %Stream.FileBinary object is no longer in use since the code has finished executing.
Here's an update, I went back to what I used initially %Stream.FileBinary, and setting RemoveOnClose to true fixed my issue with the file being saved in the stream folder where the database files are with a randomly generated name
https://docs.intersystems.com/irisforhealth20251/csp/documatic/%25CSP.Do...