title: How send the attachment as request where attachment is a field of request body?
body: <p>I'm implementing RESTful webservice by using Spring framework. There is a scenario where I need to accept the request where a field of request body will be a file(PDF or Image). My request body will look like :</p>
  
  <pre><code>{
    "id" : "101",
    "name" : "John",
    "report" : 
  }
  </code></pre>
  
  <p>Here <strong>report</strong> field in above request body will be a file(PDF or Image).
  I read many articles on this but unable to get the proper answer. I got the solution for accepting the file alone but not file as a field of request body
  Please help me out</p>