0
Image on a web page (the <img> tag) is only a url reference of image file.
To show a byte-array-image on a web page, you should export the byte-array to a temporary file and then assign the corresponding image url to your image control.
However, handling the temporary image files may lead to some extra works.
I suggest to use the internal frame (iframe). Just write the byte-arry-image to the iframe similar to what you did.