cancel
Showing results for 
Search instead for 
Did you mean: 

generated images are truncated!

cutout33
Champ in-the-making
Champ in-the-making
Hello,

am using the following two codes to generate process diagrams, but the result is same and the out put image is truncated:

http://postimg.org/image/5ul769n7x/

            
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));



1 REPLY 1

trademak
Star Contributor
Star Contributor
Did the Activiti Engine generate these images, or did you upload an image when you deployed the process definition?
Can you share the process definition XML so I can give it a try on my local machine?

Thanks,