Move to base64 encoding for uploads