Proper reading of file in base64.