Get base64 code from file