This error is encountered when one tries to map opaque element for Write File operation in stage file Action to any non base64 decoded reference. This can be due to mapping to string reference or any file content reference.
Error Message:BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 3 before EOF, the 10 most recent characters were
encodeReferenceToBase64 should be used for error resolution.