Added a test programm to upload images for characters
This commit is contained in:
Marces Zastrow
2025-01-09 13:19:38 +01:00
parent 779cec4052
commit e498ac886e
354 changed files with 59511 additions and 629 deletions
+15
View File
@@ -0,0 +1,15 @@
const {asyncIterator} = Symbol;
const readBlob = async function* (blob) {
if (blob.stream) {
yield* blob.stream()
} else if (blob.arrayBuffer) {
yield await blob.arrayBuffer()
} else if (blob[asyncIterator]) {
yield* blob[asyncIterator]();
} else {
yield blob;
}
}
export default readBlob;