At the moment I use a generic - ASHX - handler (that is called via ajax/jquery) to load an image into an IMG element like so...
serverimage1x4.src = '/Cloud/LiveXP.ashx';
However, instead of this I would like a web worker to do this.
I am returning a byte array from a web worker and using 'postmessage' it back to the parent UI.
So, assuming I use a XMLHttpRequest to return a byte array to the UI how do I load that byte array into an Image/IMG element?
Would I be better of trying to load a canvas element instead?