Base64Decoder()
Syntax
Result = Base64Decoder(*InputBuffer, InputSize, *OutputBuffer, OutputSize)Description
Decodes the specified Base64 encoded buffer.
Parameters
*InputBuffer The buffer containing the encoded data. InputSize The size of the input buffer. *OutputBuffer The output buffer where the plain data will be copied. OutputSize The size of the output buffer.
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.
Return value
Returns the length of the decoded data in bytes.
Example
Example$ = "This is a test string!" Decoded$ = Space(1024) Encoded$ = Space(1024) Debug Base64Encoder(@Example$, StringByteLength(Example$), @Encoded$, 1024) Debug Encoded$ Debug Base64Decoder(@Encoded$, StringByteLength(Encoded$), @Decoded$, 1024) Debug Decoded$
See Also
Base64Encoder()
Supported OS
All