I want to create .zip file that contains my zipped files that I recieve from backend, and then send this file to the user. For 2 days I have been looking for the answer and
seems to be solved. I replaced:
response.setContentType("application/zip");
with:
@RequestMapping(value = "/zip", produces="application/zip")
And now I get clear, beautiful .zip file :)
If any of you have either better or faster proposition, or just want to give some advice, then go ahead, I am curious.