將 Uint8Array 轉換為 Blob你可以從一組“資料塊”構造 Blob,其中每個資料塊都是字串、二進位制資料結構(包括 Uint8Array)或另一個 Blob。 TypeScript複製const arr = new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0x6f]); const blob = new Blob([arr]); console.log(await blob.text()); // => "hello" 參見二進位制資料。