Call this function to base64-encode some data.
inline BOOL Base64Encode( const BYTE* pbSrcData, int nSrcLen, LPSTR szDest, int* pnDestLen, DWORD dwFlags = ATL_BASE64_FLAG_NONE ) throw( );
The buffer containing the data to be encoded.
The length in bytes of the data to be encoded.
Caller-allocated buffer to receive the encoded data.
Pointer to a variable that contains the length in characters of szDest. If the function succeeds, the variable receives the number of characters written to the buffer. If the function fails, the variable receives the required length in characters of the buffer.
Flags describing how the conversion is to be performed. See ATL_BASE64 Flags.