I am getting output of HTTP request in Base64 format. I am writing the output in text file.
How do I convert the Base64 in plain text or in Xml?
This is an example in C#
string base64Encoded = “YmFzZTY0IGVuY29kZWQgc3RyaW5n”;
string base64Decoded;
byte data = System.Convert.FromBase64String(base64Encoded);
base64Decoded = System.Text.ASCIIEncoding.ASCII.GetString(data);
1 Like
How do I use this code?
I have Base64 text in a file. How to pass the file path and write back in new text file?
This workflow is same as C# code of previous post:
Before run, put some Base64 text in “base64.txt” file
Thank you very much. I will check it and let you know.
Have you put reportBytes tag content in a file to decode?
Take that string, and decode with previous sent workflow. After that, put decoded content back to your XML or elsewhere
Thanks a lot, very usefull!