If the data returned from a source system is not in a standard text-based format (e.g. JSON or XML) but is instead binary (e.g. the raw contents of a PDF or image file), you can encode the raw response so it gets treated as a string:
If you encode the response for an endpoint that sends data (e.g., a PUT or POST request), the response received from the target system will be encoded.
Response encoding
Responses can be Base64 encoded - click in the response encoding field to select this option: