I have a really simple flow that takes an email attachment and sends an HTTP POST with the attachment contents in the body.
The email attachment is a simple text file that just says the word "test"
Why do the contents come through like below?
If I don't use a string variable and simple send "Attachment Contents" in the HTTP body, it comes through just as strange
What is the proper way to use text attachment contents in a flow without the encoding messed with? Thanks a ton,
Solved! Go to Solution.
Hi @ms_admin,
The content of the received attachment is base64 code, if you want it to display readable, you could use the base64ToString() function convert it into string, for example:
base64ToString(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ms_admin,
The content of the received attachment is base64 code, if you want it to display readable, you could use the base64ToString() function convert it into string, for example:
base64ToString(outputs('Get_Attachment_(V2)')?['body/contentBytes'])
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much, this helped.
It also turned out an image in my signature was being sent as an attachment while testing making things even more confusing.
User | Count |
---|---|
89 | |
41 | |
22 | |
20 | |
16 |
User | Count |
---|---|
138 | |
56 | |
47 | |
36 | |
26 |