Do you mean to display such an image? If so, simply use an <img> tag on the page referencing the image file.
Fi mean to retuyrn the image data as the response, that's not something you want to to with a JSP. JSP is designed to return cahracter not binary data, and the chance that your binary data will be corrupted is high. Read this article to find out why.