base64 handle no file or read directory