HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › How to change the directory where the temp file is stored › Re: Re: How to change the directory where the temp file is stored
March 24, 2010 at 20:30
#27929
Java API offers an alternative method to create tmp file, which allows to specify tmp/ directory location:
createTempFile(String prefix, String suffix, File directory)
A call of the method may look like that:
File file = File.createTempFile(“attachment”, “.” + fileName, new File(“e:\another\temp”));