Announcement Announcement Module
Collapse
No announcement yet.
Big REST response Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Big REST response

    Hello:

    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.

    Thank you!!!

  • #2
    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!

    Bye

    Comment

    Working...
    X