반응형
base64 인코딩 이후 길이
/******************************************************************************/
size_t CalculateBase64EncodeLength(const char *b64input)
{
size_t nLen = 0;
nLen = strlen(b64input);
return ( ( nLen + 2 - ((nLen+2) % 3) ) * 4/3 );
}
/******************************************************************************/
반응형