Difference between revisions of "BASE64 ENCODE()"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{YLM to do}}
 
 
 
 
 
==Purpose==
 
==Purpose==
 
+
Encode a string with MIME base64
  
  
 
==Syntax==
 
==Syntax==
 
+
BASE64_ENCODE(<expC>)
  
  
 
==See Also==
 
==See Also==
 
+
[[BASE64_DECODE()]]
  
  
 
==Description==
 
==Description==
 +
The BASE64_ENCODE() function is used to encode a character string with MIME base64.
  
 +
The BASE64_DECODE() function is used to decode back to the string.
  
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
+
// Write encoded password to a file
 +
m_pass=space(10)
 +
@10,10 get m_pass
 +
read
 +
strtofile(base64_encode(m_pass),"password.txt")
 
</code>
 
</code>
  
==Products==
 
  
 +
==Products==
 +
Recital, Recital Server
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:58, 23 June 2010

Purpose

Encode a string with MIME base64


Syntax

BASE64_ENCODE(<expC>)


See Also

BASE64_DECODE()


Description

The BASE64_ENCODE() function is used to encode a character string with MIME base64.

The BASE64_DECODE() function is used to decode back to the string.


Example

// Write encoded password to a file
m_pass=space(10)
@10,10 get m_pass
read
strtofile(base64_encode(m_pass),"password.txt")


Products

Recital, Recital Server