window.ENTITIES={'/api/snippets/javascript/javascript%20-%20convert%20bytes%20array%20to%20blob%20(uint8%20array%20to%20blob)':[{"result":true,"message":null,"batch":{"type":"javascript","name":"javascript - convert bytes array to blob (uint8 array to blob)","items":[{"id":"jMX4xp","type":"javascript","name":"JavaScript - convert bytes array to Blob (UInt8 array to Blob)","content":"const array = [82, 73, 70, 70, 26, 0, 0, 0, 87, 69, 66, 80, 86, 80, 56, 76, 13, 0, 0, 0, 47, 0, 0, 0, 16, 7, 16, 17, 17, 136, 136, 254, 7, 0];\n\nconst options = {\n type: 'image/webp' // change 'image/webp' depending on bytes in array\n};\nconst chunks = [new Uint8Array(array)];\n\nconst blob = new Blob(chunks, options);","source":"","author":{"id":"xaOmA0","name":"Lily","avatar":"1629130172536__xaOmA0__w40px_h40px.jpg","points":548,"role":"BASIC"},"creationTime":1676087091000,"updateTime":1706241789000,"removalTime":null},{"id":"Dl6G4j","type":"javascript","name":"javascript - convert bytes array to blob (uint8 array to blob)","content":"const array = [82, 73, 70, 70, 26, 0, 0, 0, 87, 69, 66, 80, 86, 80, 56, 76, 13, 0, 0, 0, 47, 0, 0, 0, 16, 7, 16, 17, 17, 136, 136, 254, 7, 0];\n\nconst blob = new Blob([new Uint8Array(array)], {type: 'image/webp'}); // change 'image/webp' depending on bytes in array","source":"","author":{"id":"9o1NY0","name":"Violetd","avatar":"1629130632039__9o1NY0__w40px_h40px.jpg","points":925,"role":"BASIC"},"creationTime":1676146764000,"updateTime":1706241779000,"removalTime":null}]}}]};