title: How can I get MIME type of an InputStream of a file that is being uploaded?
body: <p>Simple question: how can I get MIME type (or content type) of an <code>InputStream</code>, without saving file, for a file that a user is uploading to my servlet?</p>