Question
Custom plugin 26.3, content service
I am working on a custom plugin, I am curious as if there was a change in Appian version 26.3, I use content service to open a file and get the input stream, like I have down with versions 25 and older, I was curious if there was a change in how the content service works and how to properly open a file inside a custom smart service.
Code I am using:
Document[] documents = contentService.download(docId, ContentConstants.VERSION_CURRENT, false);
if (documents == null || documents.length == 0) {
throw new RuntimeException(String.format("Document with id [%s] was not found.", docId));
}
Document document = documents[0];
return document.getInputStream();
