io.FileUtils.writeByteArrayToFile(file, bytesValue) Var file = new .File(outputDirectory, fileName) Var bytesValue = new (ntent).getBytes('UTF8') Var response = tw.system.invokeREST(request) In theory octet-streams does not need any conversion – and you can save content like below: This would be important because we'd likely tell you that IBM BPM can provide a link to the document and you don't need to work with the raw data to get the result you want.ġ. I have the Base64 encoded string, and I think if I convert it to a binary I can display it for the user'. I'd like to provide the user a link in by UI that will open up those items using the browser. Part of that data is the documents attached to a given BPD instance. Something like 'I'm writing an Agular application that will pull some data from IBM BPM.
TBH, it would be better to give us the entire problem rather than just asking a tactical question. The answer to the question will differ based on the answers to 2 & 3. Where are you making the call from? (BPM Service, Browser, Separate Java Application.).What ReST call you are making? (It feels like it is one of the 'document' APIs but I'd like to be sure).