Following are the HttpServletResponse header and content type used to send a file. Upto 32MB of data is passed to the client, but my whole data is of 100MB size.
response.setContentType("application/octet-stream");
response.setHeader("Transfer-Encoding", "chunked");
response.setHeader("Content-Disposition", "attachment; filename="filename.bin");
I can't store this data to cloud storage as this would be created per user.
Does this can be achieved through HttpServletResponse? or I need to move to some other method, say sockets etc.
Please recommend a method for multi client environment.