Repository contains example how to return Multipart response in Spring Web MVC. It is really rare, but sometime occurs in web-services.
The key idea that we can use a Mulitpart client library to generate the response. This example uses httmime library, which is the part of Apache http client.
Useful links:
- rfc1341 - 7.2 Multipart
- httpmime example - see for more complex usage, like adding binary