Hi Everyone,
Every now and then, I have been dealing with situations where I am reading binary data from one REST API call and need to pass this data to another REST API call as it is without any modifications whatsoever.
A hypothetical example would be reading a file from, lets say, Sharepoint and uploading it to Azure Blob Storage or IBM Cloud Object storage. In such cases, during transition between the two API call (say, the calls are happening in two different service flows), is there a way to store this data somehow without any XML or String conversions happening to it?
I tried storing this data in an ANY variable but i believe internally, even ANY variables are serialized as XML hence the data when pushed back to the destination API becomes corrupt.
I do not have the liberty of converting this data to a binary string representation either as that would require the destination to convert it back to binary. I was able to achieve this on UI by using jQuery Ajax calls with a custom binary payload definition but not sure how to do it within backend code like Service Flows.
We have a use case coming up very soon for this, so any quick help would be really appreciated. If this is not possible, any alternate design pattern to handle this type of situations, like implementing something custom as a Java jar and utilizing that?
------------------------------
Sumit Bhardwaj
------------------------------