The same thing is working when I store a image with Base64 encoding.
my image tag contains like: <img src="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwX.." />
When I open the jsp, I bring the image as follows:
//ACTION CLASS
//set Photo working copy
BASE64Encoder base64Encoder = new BASE64Encoder();
StringBuilder imageString = new StringBuilder();
imageString.append("data:image/png;base64,");
imageString.append(new
String(Base64.getDecoder().decode(rs.getBytes("Photo"))));
member.setPhoto(new String(imageString));
in jsp:
<img width="100" height="80" src="<s:property value='member.Photo'/>">
It works fine.