Base64Decoder()
Syntax
Result = Base64Decoder(InputBuffer, InputLength, OutputBuffer, OutputLength)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 slighty larger buffer, like 30% to avoid overflow. 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, Len(test), @enc, 1024) Debug enc Debug Base64Decoder(@enc, Len(enc), @dec, 1024) Debug dec
Supported OS
Windows, Linux, MacOS X