| 4D v20.1BASE64 ENCODE | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v20.1
 BASE64 ENCODE 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| BASE64 ENCODE ( toEncode {; encoded}{; *} ) | ||||||||
| Parameter | Type | Description | ||||||
| toEncode | BLOB, Text |   | Value to encode | |||||
|   | Encoded value (if encoded parameter omitted) | |||||||
| encoded | BLOB, Text |   | Encoded value | |||||
| * | Operator |   | Encode in Base64URL format | |||||
The BASE64 ENCODE command encodes the text or blob value passed in the toEncode parameter in Base64 or Base64URL format.
Base64 encoding modifies 8-bit coded data so that they do not keep more than 7 useful bits. This encoding is required, for example, for handling blobs using xml. Base64URL is an alernative encoding with a specific processing for URLs and filenames (see rfc4648).
Pass in toEncode a text or blob value to encode.
Note: When you pass a text value, the command encodes the utf-8 representation of the text.
If you pass the encoded parameter, it receives the encoded contents of toEncode as text or blob at the end of command execution. In this case, the toEncode parameter itself is not modified by the command.
If you omit the encoded parameter, the command directly modifies the toEncode parameter.
By default if the * parameter is omitted, the command uses a Base64 encoding. If you pass the * parameter, the command uses a Base64URL encoding.
									BASE64 DECODE
									
									Generate digest
									
									Overview of XML DOM Commands
									
									XML DECODE
									
	Product:  4D
	Theme:  Tools
	Number:  
        895
        
        
        
	
	Created:  4D 2004
	Modified:  4D v12
	Renamed: 4D v12
	Modified:  4D v18 R4
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	4D Language Reference ( 4D v20)
	
	
	4D Language Reference ( 4D v20.1)
	
	
	
 Add a comment
Add a comment