Forum Discussion
How to convert text to base64 text
Hi, I am working with REST API as source, where I have to send token for authintication.
But I have to send that as base 64 text.
I want to convert string- zc4cqxzc2k522zfzpueslrn3e3dvaxgxntpcnujnboksj7yico3a to base 64 which will come as
OnpjNGNxeHpjMms1MjJ6ZnpwdWVzbHJuM2UzZHZheGd4bnRwY251am5ib2tzajd5aWNvM2E=
4 Replies
- armandobs14New Member
Text.toBinary("text",BinaryEncoding.Base64)
Binary.FromText("1011", BinaryEncoding.Base64) - v-caliao-msftMicrosoft Employee
Please refer to the link below to Encode and Decode text in Base64.
http://www.url-encode-decode.com/base64-encode-decode/Regards,
Charlie Liao
PlePlppppsadfjklasdl gyt6v c
- sasmpu00Frequent Visitor
I am looking for M code which will convert it to base64 automatically.
- okayashikNew Member
Hello,
You will get the function for every programming language to encode or decode base64.
Like Javascript base encode to decode tool: https://www.techinblood.com/base64-encoder-and-base64-decoder/
Thanks