Base64 encoding a file

I'm wondering if anyone has an example of where they are base64 encoding a file using a script. I can read the contents of the file (a PDF) but I need to post it to an internal service and I need to base64 encode it first. I'm sure it is trivial but I just haven't been able to figure out calling the script from the AWF.
0
Answers
I haven't tested it but this looks promising. forums.networkautomation.com/forum/messageview.cfm?catid=33&threadid=6132&highlight_key=y&keyword1=base64%20encode
I resolved this by creating a power shell script, and invoking that from the Advanced Work Flow.