The awkward thing is that we currently have only picture paths, which are subject to the browser's security policy, … Readasdataurl (), however, it only accepts file or BLOB types, which are generally only available through the Files property of the element.
FileReader objects also have a similar approach, such as. Or create a new object manually with the Blob constructor.