Streaming Binary Data with MTOM  Locate

The service described above works fine for returning small data. However, for large data with many requests, this service would take up a large amount of memory on the server.

One solution is is to stream the data over the network stream from the server to the client. The org.idoox.wasp.types.MtomMessageAttachment class is intended for this purpose. This class enables user to stream the binary data from server to client (and/or vice versa).