I'm using BPMRESTRequest to call the service and then I store the response in a BPMRESTResponse. Response data from REST API of Content-Type(application/octet-stream) - Octet-stream pdf format Response data from REST API of Content-Type(application/octet-stream) Subject: How to save octect-stream to pdf?Īfter calling a REST service I receive a string in the form "%PDF.".īasically something like this: Response data from REST API of Content-Type(application/octet-stream) GitHub But check Andrew's questions first - maybe this is not needed at all in your scenario. If you really need you can try to convert it to some server file …ĥ. After changing swagger definition you can download file and automatically upload it to (internal) ECM. Please check your swagger/openAPI file as you probably using schemaless operation. Some bytes are lost already in ntent string.Ģ. However, you already know that it does not work. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |