Apple은 오픈 소스 Base64 인 코드/디코더를 발표했습니다. 한 번 Windows 프로젝트에서이 문제없이 컴파일하는 것을 기억합니다. 출처 : here. 헤더 here. 예를 들어
:
unsigned char* array = <your data>;
int len = <number of bytes in "array">
int max_encoded_length = Base64encode_len(len);
char* encoded = new char[max_encoded_length];
int result = Base64encode(encoded, (const char *)array, len);
// encoded is now a null terminated b64 string
// "result" is the length of the string *including* the null terminator
// don't forget to invoke "delete [] encoded" when done
체크 아웃 http://stackoverflow.com/questions/342409/how-do-i-base64-encode-decode-in-c – pSoLT