The image has to be delivered as a separate transaction from the HTML. The HTML contains an IMG tag which typically references a servlet, using some identifying information in a query string to specify which image. Typically your first transaction stores either information on the image, or the image itself in session and a key in the query string, specifies which image to get from session.