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
Context
- Disabling Temporary Files? · Marc-André Laverdière
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.