Sometimes REST services embedd binary files in a base64 encoded response.
So do you get an answer with content-type application/json:
{
"file": "......"
}
...or plain binary (content-type application/pdf)?
Plain binary you could get using common Unix/Windows commands (=> using an OS Job).
Unix: curl, wget
Windows: Invoke-Webrequest (powershell)
------------------------------
☎️ Swisscom Automation Engineer & 🧙 PE Membership Creator
Automic Kurse, Tutorials, Tools und mehr auf:
https://membership.philippelmer.com/Zwei Wochen kostenlos testen!
------------------------------
Original Message:
Sent: 09-22-2021 04:14 AM
From: Ivan Viedma
Subject: Character Encoding Format in Automic Agents
Hi guys,
I need to download a PDF and store it in the automatic machine to later send it by mail. To obtain this PDF the only way is to make a call through REST API as seen in the image. What I came up with was to store the code that I get from the call but when doing so many characters disappear due to the encoding.
What would be the correct way to make this call through REST API and store the PDF code in the Automic machine?