I upload some files to my PostMapping endpoint, it accepts @RequestParam("files") MultipartFile[] files.
My application performs some logic over them, and I would like to send those images back as blobs. Can I do it with Spring? I have no problem returning 1 file back using the ResponseEntity<byte[]> return type, by just using Files.readAllBytes(myOnlyFile), but I'm not sure how to do so for many files. Perhaps I need to return ResponseEntity<byte[][]>?
Thanks in advance.