This content has been marked as final. Show 4 replies
The result when executed in a browser is a jpeg image file. What i want to do is get the file name of the generated image so that i can use <img src so that i can integrate it with the layout i have.
response.setContentType("image/jpeg"); OutputStream output = response.getOutputStream(); JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(output); encoder.encode(bi); output.close();