title: How to convert javax.xml.transform.Source into an InputStream?
body: <p>How can I convert a <code>javax.xml.transform.Source</code> into a InputStream? The Implementation of <code>Source</code> is <code>javax.xml.transform.dom.DOMSource</code>.</p>
  
  <pre><code>Source inputSource = messageContext.getRequest().getPayloadSource();
  </code></pre>