4D v16.3

BASE64 ENCODE

Home

 
4D v16.3
BASE64 ENCODE

BASE64 ENCODE 


 

BASE64 ENCODE ( blob {; encodedText} ) 
Parameter Type   Description
blob  BLOB in BLOB to encode in Base64 format
in BLOB encoded in Base64 format
encodedText  Text in Result of BLOB encoded in Base64 format

The BASE64 ENCODE command encodes the BLOB passed in the blob parameter in Base64 format.

If you pass the encodedText parameter, it receives the encoded contents of the blob as text at the end of command execution. In this case, the blob parameter itself is not modified by the command. 
If you omit the encodedText parameter, the command directly modifies the BLOB passed as a parameter.

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.



See also 

BASE64 DECODE
Overview of XML DOM Commands
XML DECODE

 
PROPERTIES 

Product: 4D
Theme: Tools
Number: 895

This command can be run in preemptive processes

 
HISTORY 

Created: 4D 2004
Modified: 4D v12
Renamed: 4D v12

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)