Technically base64 is an option, and you’d use the Java actions offered in the CommunityCommons module in the app store.
The first option you tried is really the right way to do this. Try calling your published service (with a FileDocument) from PostMan and see if you get the file contents back. If you do, then the consuming side has an error. If you don’t, then the publishing side has an error.
Let us know which is it and we’ll sort this out.
Hi Suresh,
Try to send it in JSON as Base64 Encoded string
You can use the Base64EncodeFile Java action in the CommunityCommons module
Your first solution is the way to go. Have the microflow return a file document.
Do you set the Content-Type header? If you don’t, the client doesn’t know how to interpret the binary data.