Removed ref
This commit is contained in:
1 parent
d7c1972c99
commit
6c645ba500
4 files changed
+113
-111
No files matched your search
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user