Fix copying array data in IIPHandler

Fixes #5660
This commit is contained in:
Daniel Imms
2026-02-01 07:15:25 -08:00
parent e96748cc79
commit 6525a7e68e
+2 -1
View File
@@ -105,7 +105,8 @@ export class IIPHandler implements IOscHandler, IResetHandler {
return true;
}
const blob = new Blob([new Uint8Array(this._dec.data8)], { type: this._metrics.mime });
// HACK: The types on Blob are too restrictive, this is a Uint8Array so the browser accepts it
const blob = new Blob([this._dec.data8 as Uint8Array<ArrayBuffer>], { type: this._metrics.mime });
this._dec.release();
if (!window.createImageBitmap) {