Kazuki Shimizu opened SPR-13443 and commented
Currently,ResourceMessageConverter is reading as ByteArrayResource from the HTTP body. If large data has been set at http body, there is possibility that occur the OutOfMemoryError.
I want to be able to read as InputStreamResource as follows:
RestTemplate restTemplate = new RestTemplate();
Resource resource = restTemplate.getForObject("http://localhost:8080/myApp/foo.zip", InputStreamResource.class);
How do think ?
I submit a PR at the later.
Affects: 4.2.1
Issue Links:
Referenced from: pull request #871, and commits 1feb757
Kazuki Shimizu opened SPR-13443 and commented
Currently,
ResourceMessageConverteris reading asByteArrayResourcefrom the HTTP body. If large data has been set at http body, there is possibility that occur theOutOfMemoryError.I want to be able to read as
InputStreamResourceas follows:How do think ?
I submit a PR at the later.
Affects: 4.2.1
Issue Links:
Referenced from: pull request #871, and commits 1feb757