I have a flow that is triggered by an email in Outlook 365 with a specific subject. It then uses an http step to send calls to the ServiceDesk Plus cloud API. The flow retrieves the attachments from the email, and sends them to the API. The flow works for a simple text file attachment. However, for any other type of file such as a png image file, the flow runs successfully, and the API call is successful, but the file that is uploaded is unreadable or corrupted.
The file needs to be sent to the API as raw binary. I am using a Get Attachment action to get the attachment from the email, and then a Compose step to convert the file content to binary: base64ToBinary(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
Any ideas on how I could send the file content as raw binary to the api ?