OCLOperators StringToBase64
No edit summary
No edit summary
Line 1: Line 1:
Will convert the string to an UTF8 encoded string stored in Base64 format.
Will convert the string to a UTF8 encoded string stored in Base64 format.


When sending Base64 as url parameter / and + will not survive - it is common to go like this: StringToBase64.Replace('/','_').Replace('+','-')
When sending Base64 as URL parameter / and + will not survive - it is common to go like this: StringToBase64.Replace('/','_').Replace('+','-')


Chances are that the receiver will use this frequently used replacement pattern and understand the you data: [https://stackoverflow.com/questions/1228701/code-for-decoding-encoding-a-modified-base64-url-in-asp-net-framework See this article for background]  
Chances are that the receiver will use this frequently used replacement pattern and understand the data - [https://stackoverflow.com/questions/1228701/code-for-decoding-encoding-a-modified-base64-url-in-asp-net-framework See this article for background]  
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 07:27, 6 March 2023

Will convert the string to a UTF8 encoded string stored in Base64 format.

When sending Base64 as URL parameter / and + will not survive - it is common to go like this: StringToBase64.Replace('/','_').Replace('+','-')

Chances are that the receiver will use this frequently used replacement pattern and understand the data - See this article for background

This page was edited 99 days ago on 02/10/2024. What links here