Use the Advanced Converter workflow component, To Base64 in order to convert the payload of the workflow into base64. This can e.g. be used in order to convert the payload into a string and then extract information from the file or do a search and replace in the payload.
This component has no parameters: