OCLOperators StringToBase64
(Adding message template to the top of the page)
(Replacing message template with parser tag)
 
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
Will convert the string to a UTF8 encoded string stored in Base64 format.
Will convert the string to a UTF8 encoded string stored in Base64 format.



Latest revision as of 07:49, 17 June 2024

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 SO-article for background

If you have a string in clear text and want it as a byte array (BLOB), do this 'My clear text string'.StringToBase64.Base64ToBlob

When sending SAML tokens - and possibly other things - you are expected to compress the data with Deflate. You can follow a pattern to access the Deflate mechanism in Turnkey. Read more here: SysSingleton.Deflate

This page was edited 95 days ago on 06/17/2024. What links here