Java6, Struts2.2.3.1 - I'm converting a byte array to an image(jpg). Please see the link below, if you open this in IE the image is not complete, whereas it opens fine in Firefox or Chrome
Java
I encode the bytearray and convert to String using MiGBase64 - where this.bean.imageByteArrayString refers to the form bean
this.bean.setImageByteArrayString(new Base64().encodeToString(imageInByteArr, false));
JSP
<img src="data:image/jpg;base64,<c:out value='${bean.imageByteArrayString}'/>" />
Not sure why this is not working in IE8.
IE8 has a 32KB limit on the data URI scheme. See also the wikipedia article on the subject.
I suggest to generate a normal URL instead and have a servlet to serve the image, or if the image is actually already located on the disk file system of the webserver, to create another webapp context so that you can just reference it directly by URL.