title: Uploading JSON and binary file in one request
body: <p>I am looking to create a RESTful API for use with an Android and iOS app. So far I have been experimenting with using Jersey on the server and then the appropriate http libraries on the client side. At the moment I have been using <code>multipart/related</code> as the mimetype for the request with JSON forming the first part of the body then a jpeg image as the second.</p>
  
  <p>So far I have had problems with making the request to the server, getting a <code>406 Not Acceptable</code> from Jersey. I note that <code>multipart/related</code> is primarily used in sending emails. Is there actually a way that I can support mixed type content as an upload or have I entirely mis-understood the usage of <code>multipart/related</code> in this context?</p>