I\'m trying to render a PNG image that is stored in a javascript Uint8Array. The code that I originally tried was the following:
Uint8Array
var imgByteStr
Full Working Example: (save as .html file and open)
1: Creates Uint8Array.
2: Fills it with debug pattern.
3: Pastes it to canvas element on page.
Output should like like below:
U8A_TO_CANVAS