Optionalfile: File
The file to inspect
Optionalresolve: (res?: string) => void
The callback function to execute when the file read success
Optionalreject: (ev?: ProgressEvent<FileReader>) => void
The callback function to execute when the file read failure
Read and convert the given file to data url