MIME_BASE64_LINE_MAX
static char b64[MIME_BASE64_LINE_MAX];
static char mem[3 * (MIME_BASE64_LINE_MAX / 4)];
buflen = 3 * (MIME_BASE64_LINE_MAX / 4);