Issues with Base64 Decode - Base64.decodeAsBinary()
Curious if anyone has any thoughts or can see if I’m just doing something wrong…
I have a pipeline that’s fetching content files from Salesforce. These are received in BASE64 format and need to be decoded to binary before posting them to an internal application. If I leave the Salesforce results as-is (BASE64) and just try to send them to the REST POST snap with an inline Base64.decodeAsBinary() if fails with a weird error about bad Base64 input characters.
However, if instead I hookup an actual Document-to-Binary (BASE64 DECODE) and then re-encode with a Binary-to-Document (BASE64 ENCODE) and then pass that to the REST POST snap still with an inline Base64.decodeAsBinary() it seems to work fine…
Seems weird… Obviously I would prefer to just do the first method, rather than decoding/encoding/decoding like the second method.
Any ideas?