We have created a workflow, which in the end saves a specific binary content in a local temp file within vRO. This file should be the output of the workflow as well.
Now we would like start this workflow with the vRO REST api with the expectation, that this temp file or workflow output should be downloaded automatically.
I hope I have described my problem understandably.
The best way I've found to do this is setting on output variable as MimeAttachment. This will be expose in the API call as a Base64 string.
Now, be careful because this will be saved in the database so, if you are creating large files, this will have a big impact. I've done this to export a not so big CSV and JSON files.
1. Create a Json
2. Output the mimeAttachment
3. Api call response
Hope this helps.