In some automations, you may require to attach a file to a work item in DevOps.
For example, you may want to send an email to a Distribution List, and with the email content and attachments, cr...
I'm about to achieve this, but i got an issue with the upload,
Everything passes and the file is uploaded as b64 as expected,
The problem is that the file is unreadable after being uploaded, because it stills in b64 (as exemple somedoc.pdf, if i open it with a notepad, it's b64 only inside). It is a bug ? It seems that devops does not decode the b64 during the upload or attach step
Compose task i use to convert attachment bytes to b64 in the loop
EDIT : Ok it seems that i had encoded in b64 twice. It seems that the http POST does it itself. I've removed my "compose" step with the b64 conversion and i can now see that a b64 string stills sent to the API:
But now it fails with this error and i don't understand why!