map data to base64