encoded initial ng data to base64