EncodeBase64
EncodeBase64 function
| Method Prototype | Description
|
| Function EncodeBase64(data As String, lineWidth As Int32=76) As String | encode data is Base64
|
This function encodes arbitrary (possibly binary) data using the MIME standard
Base64 encoding. The result consists of only printable ASCII characters (A-Z, a-z, and 0-9), making it safe to store in text files for example.
The second parameter, lineWidth, specifies the number of characters to allow on each line before inserting a line break. This parameter is optional, and defaults to 76 (the standard line width used with email MIME attachments). If you specify a value of 0, then no line breaks will be inserted.
To convert the Base64 data back into the original data, use the
DecodeBase64 function.