You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Andreas Beeker <ki...@apache.org> on 2019/05/26 20:23:20 UTC

Re: Exception

Hi Glenn,

your mail looks auto-corrected, but I guess you want to know, how to configure the TempFile directory.

Option 1:
Configure the Java tmpdir when calling your program:
-Djava.io.tmpdir=<path to your temp directory>

Specify -Dpoi.keep.tmp.files=<anything> to suppress the deletion of the tempfile, i.e. the default is to remove temporary files.


Option 2:
Provide a custom TempFileStrategy.
Have a look at:
https://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/util/DefaultTempFileCreationStrategy.java?view=markup
The strategy can be set via TempFile.setTempFileCreationStrategy()

Andi