You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read large data using InputStreamResource at ResourceHttpMessageConverter [SPR-13443] #18023
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:
Activity
spring-projects-issues commentedon Sep 7, 2015
Kazuki Shimizu commented
I've submit a PR.
Please check it.
spring-projects-issues commentedon Sep 8, 2015
Juergen Hoeller commented
Good idea! Added in a slightly revised fashion now, also checking whether we support the specified resource class at all.
Juergen
spring-projects-issues commentedon Sep 8, 2015
Kazuki Shimizu commented
Hi Juergen,
Thanks for polishing and merging!! i happy :)
spring-projects-issues commentedon Feb 27, 2018
Mauro Molinari commented
But does this work as expected? Isn't the input stream already closed after the call to
getForObjecthas ended?See also #12015 and https://stackoverflow.com/a/48041200/1465635