1. absolutely nothing was served by posting that whole monster string.
2. There is no reliable way to serve binary data from JSP, JSP assumes character data
3. each image on a HTML web page takes a separate request in an IMG tag
4. in a JSP you must create a URL for an IMG tag that points to a servlet which can serve the binary data with correct headers for type and content-length