May not work in IE.
A way to create a dataURI
fetch('assets/db/empty.sqlite')
.then(data => {
data.arrayBuffer().then(buffer => {
const blob = new Blob([buffer], { type: 'application/octet-stream' });
const reader = new FileReader();
reader.readAsDataURL(blob);
reader.onloadend = function () {
console.log(reader.result);
};
});
});