Disabling Temporary Files?
Marc-André Laverdière
marcandre.laverdiere at gmail.com
Mon Feb 27 01:15:23 PST 2012
Hello everybody,
I am working on something for which we want the document to stay in
memory, with no temp file on disk.
So far, we open the file as such:
com.sun.star.beans.PropertyValue[] args = new
com.sun.star.beans.PropertyValue[] {
new PropertyValue("ReadOnly", -1, true, PropertyState.DIRECT_VALUE),
new PropertyValue("Hidden", -1,true,PropertyState.DIRECT_VALUE),
new PropertyValue("Overwrite",-1,true,PropertyState.DIRECT_VALUE),
new PropertyValue("InputStream", 0,new
ByteArrayToXInputStreamAdapter(myData), PropertyState.DIRECT_VALUE),
};
xComponent = xLoader.loadComponentFromURL("private:stream","_self", 0,args);
And the result is that we have a temporary file in
C:\Users\meh\AppData|local\Temp\
Is there any PropertyValue that we can set that will disable all
temporary files?
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com
More information about the LibreOffice
mailing list