Base64Decoder()
Syntax
Result = Base64Decoder(*InputBuffer, InputSize, *OutputBuffer, OutputSize)Description
Decodes the specified Base64 encoded buffer. 'Result' will contain the length (in bytes) of the decoded string.
The output buffer can be up to 33% smaller than the input buffer, with a minimum size of 64 bytes. It's recommended to get a slightly larger buffer, like 30% smaller to avoid overflows. Base64Encoder() can be used to encode data in Base64 format.
Example:
test.s = "This is a test string!" dec.s = Space(1024) enc.s = Space(1024) Debug Base64Encoder(@test, StringByteLength(test), @enc, 1024) Debug enc Debug Base64Decoder(@enc, StringByteLength(enc), @dec, 1024) Debug dec
Supported OS
All