How to get raw binary data from a POST request processed by Spring?
问题 I need to write an application which would be able to process binary data sent by CUrl, such as: curl localhost:8080/data --data-binary @ZYSF15A46K1.txt I've created a POST processing method as follows: @RequestMapping(method = RequestMethod.POST, value = "/data") public void acceptData(HttpEntity<byte[]> requestEntity) throws Exception { process(requestEntity.getBody()); } However it doesn't seem to be returning raw binary data. I've tried sending a GZip file and after going through Spring