06-10-2013 08:05 AM
final InputStream definitionImageStream = repositoryService.getResourceAsStream(processDefinition.getDeploymentId(), processDefinition.getDiagramResourceName());
String imageExtension = extractImageExtension(processDefinition.getDiagramResourceName());
String fileName = UUID.randomUUID() + "." + imageExtension;
File downloadsTmp = new File(downloadsPath);
FileManagmentHelper.writeFileFromStream(definitionImageStream, new File(downloadsTmp, fileName));
final InputStream definitionImageStream = repositoryService.getResourceAsStream(processDefinition.getDeploymentId(), processDefinition.getDiagramResourceName());
String imageExtension = extractImageExtension(processDefinition.getDiagramResourceName());
String fileName = UUID.randomUUID() + "." + imageExtension;
File downloadsTmp = new File(downloadsPath);
FileManagmentHelper.writeFileFromStream(definitionImageStream, new File(downloadsTmp, fileName));
06-10-2013 09:26 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.