User Buffer for base64 encoding and remove withCredentials.