Removed ref

This commit is contained in:
Daniel Cojocea committed 2024-07-05 18:48:32 -04:00
1 parent d7c1972c99
commit 6c645ba500
4 files changed
+113 -111

No files matched your search

+8
View File
@@ -21,3 +21,11 @@ export const bufferTo64 = (bufferData) => {
reader.readAsDataURL(blob);
});
};
export const bufferToUrl = (buffer) => {
console.log(buffer);
const blob = new Blob([buffer.data], { type: buffer.contentType });
const url = URL.createObjectURL(blob);
return url;
};