Unicode C++
Unicode C++
Decode Base64
Demonstrates how to decode base64.Chilkat Unicode C++ Downloads
#include <CkBinDataW.h>
void ChilkatSample(void)
{
bool success = false;
CkBinDataW bd;
// Append a base64 string to bd.
success = bd.AppendEncoded(L"c2VjcmV0",L"base64");
// The bd now contains the decoded bytes.
// Let's say it was a password string..
const wchar_t *password = bd.getString(L"utf-8");
// Decodes to "secret".
wprintf(L"password = %s\n",password);
}