View Full Version : Big REST response
Jul 30th, 2012, 09:11 AM
How can i manage big REST responses without memory exceptions?
My app needs to load a response of about 5 Mb and i don't know how to manage it with Spring Android.
Aug 23rd, 2012, 07:08 AM
I would ask the same thing and reading the forum i find your post!
In my old app I save the response to a FileOutputStream, then I created a custom Jackson Object mapper to get element by element, avoiding to map the received content to a list!
Now the doc says that you can define your own MessageConverter, so I think that is possible to create a Jackson converter with a custom object mapper. I think is also possible to stream the response to a file!
Let me know if you find a better solution!
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.