Generating a live Jpeg from random numbers

Thanks for the reply!

Surely this will render a (random) pixelated image as opposed to a “corrupt” jpeg image using random JPEG encoded (JFIF) bytes?

Also, the idea is to write random (binary) data into a file (with a jpeg header) to render out the jpeg generation process live - not to save it out as a rendered image to view.

corrupt%20jpeg