* check the buffersize while base64 encoding; and adjust it if needed.