Is there a possibillity to detect a TEMP-directory which always exists on all OS?
Example: we store files in the database, but if we want to launch them, we have to write them first to the local-drive.
And is there a possiblity to delete the file afterwards?
yes possible, we could provide a method:
var tempFileName = application.createTempFile(“mydocument”,“pdf”);
and files created by this method would be deleted on close of application.
whould this work?
Yes PLEASE!
IN 2.0BETA5,
is the tempfile created in Memory?
I can’t find it on the local drive!
It is located in your temp folder for the duration of the Servoy process being alive.
BTW a number is added to the file name, to make it unique,
var tempFileName = application.createTempFile(“mydocument”,“pdf”);
becomes on disk something like mydocument444.pdf
Ah, found it. Thanks!