here is my code i am passing in an interface that hold a blob under a data:Bl
private _toBase64 = (file: any) =>
new Promise<string | ArrayBuffer | null>((resolve, reject) => {
const reader = new FileReader;
debugger;
reader.readAsDataURL(file);
reader.onload = () => {
resolve(reader.result);
};
reader.onerror = error => {
console.log(error);
reject(error);
};
});