document base64 methods