|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack DStruct Procedures and Functions DecodeBase64|
|See also: ASCII Code, DecodeASCII85, EncodeBase64|
The function DecodeBase64 decodes the base-64 encoded data stream InStream and writes the result to the stream OutStream. Data of Instream is read from the current stream position; the resulting decoded data is written to the current position of Outstream (overwriting all data after the current position). The function returns the following error codes:
In addition to the original definition DecodeBase64 accepts CR (ASCII 13) and LF (ASCII 10) in the input stream. These characters are discarded during the decoding process.