public String toTempFile() throws IOException {
        File file = File.createTempFile(UUID.randomUUID().toString(), ".binary.tmp");
        file.deleteOnExit();
        toFile(file);
        return file.getAbsolutePath();
    }
public String toTempFile ( ) throws IOException { File file = File . createTempFile ( UUID . randomUUID ( ) . toString ( ) , ".binary.tmp" ) ; file . deleteOnExit ( ) ; toFile ( file ) ; return file . getAbsolutePath ( ) ; }
Creates new temporary file with random name and returns full path to the file

@return Temporary file path string