Spring-MVC : How to stream mp3 file from controller
问题 I am working on a Spring-MVC application in which I am trying to stream mp3 data. Unfortunately, it's directly triggering a download whenever a byte-array of information is sent in response. I found a few other links, but most of them are tied to an user-interface, so not much useful. What are the requirements for streaming a mp3 file? Here is the download code I have. @RequestMapping(value = "/getsong/{token}") public ResponseEntity<byte[]> getsong(@PathVariable("token") String token,