Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
Expand Down Expand Up @@ -52,6 +53,7 @@
import eu.cloudopting.service.UserService;
import eu.cloudopting.service.util.StatusConstants;
import eu.cloudopting.store.StoreService;

//import scala.collection.concurrent.Debug;


Expand Down Expand Up @@ -266,7 +268,7 @@ public ActivitiDTO startUpdate(Long applicationId, Organizations org) {


public static File stream2file (String uploadName, InputStream in) throws IOException {
final File tempFile = File.createTempFile(uploadName+BpmnService.TEMP_FILE_NAME_SEPARATOR, "tmp");
final File tempFile = Files.createTempFile(uploadName + BpmnService.TEMP_FILE_NAME_SEPARATOR, "tmp").toFile();
tempFile.deleteOnExit();
try (FileOutputStream out = new FileOutputStream(tempFile)) {
IOUtils.copy(in, out);
Expand Down