Using DataSource objects
Provider implementations can use objects that implement the javax.activation.DataSource interface when the following conditions are true:
-
the implementation is using the HTTP binding.
-
the implementation is using message mode.
DataSource objects provide a mechanism for working with MIME typed data from a variety of sources including URLs, files, and byte arrays.