Show image from Uint8Array

i have a Uint8Array containing pixels of an image [243, 200, 62, 255, 249, 202, 59, 255, 249, 202, 59, 255 …], how can i show an image from it ?

I’ve tried to convert my array into Base64 string but unable to get proper results. Any solutions for it ?