content types in power automate:
Converter functions
To preserve some data types, Logic Apps converts content to a binary base64-encoded string with appropriate metadata that preserves both the $content payload and the $content-type, which are automatically converted.
This list describes how Logic Apps converts content when you use these functions:
json(): Casts data to application/json
xml(): Casts data to application/xml
binary(): Casts data to application/octet-stream
string(): Casts data to text/plain
base64(): Converts content to a base64-encoded string
base64toString(): Converts a base64-encoded string to text/plain
base64toBinary(): Converts a base64-encoded string to application/octet-stream
dataUri(): Converts a string to a data URI
dataUriToBinary(): Converts a data URI to a binary string
dataUriToString(): Converts a data URI to a string