Changing the /tmp directory to other path

Hi,

In your one post you have mentioned that Aspose.words uses /tmp directory to write temporary files. How and where I can configure this to some other directory. e.g. /data in the aspose.words.

Hi Jose,


Thanks for your inquiry. Aspose.Words for Java uses a temporary directory on your machine that is specified via java.io.tmpdir system property. Aspose.Words writes temporary files and removes them as soon as rendering is completed. “java.io.tmpdir” is a standard Java system property which is also used by the disk-based storage policies. It determines where the JVM writes temporary files. You can change the value of this property for example by using System.setProperty(“java.io.tmpdir”, "/mytempdir) method. I hope, this helps.

Best regards,