I am not sure if this is the right forum for this question, but it looked more appropriate than some others.
I am sending a file in a HTTPServletResponse to the client browser. So, I set the content type as follows: response.setContentType("application/x-octet-stream"); response.setHeader("Content-disposition", "attachment; filename=" + file.getName() + ";");
I also have to send some other data that is not part of the file. Is it possible to do this?