title: Java — Is there a way to return both JSON response and byte array of file in Spring REST Controller response?
body: <p>I need to return a zip compressed set of files and JSON response, which contains an array of mentioned files with their metadata. Is there a way to do it via HttpServletResponse and / or ResponseEntity in Java?</p>