Base64Codec_decode

Decodes binary data from a UTF-16 string containing the data encoded in base64.

Syntax

C++

 #include "Base64Codec.h"
 
 DIRXML_EXPORT 
 unsigned char * IFAPI Base64Codec_decode( 
    const unicode   *encodedData,
    int             *decodedLength);
 
 

Parameters

encodedData
(IN) Points to a UTF-16 string containing base64-encoded data.
decodedLength
(OUT) Points to a variable that receives the length of the decoded data.

Return Values

If successful, returns a pointer to an array of bytes containing decoded data.

If the input data is malfromed, returns zero.

Remarks

The returned array must be freed with a call to the base64DecodeFree function.