title: How to POST both XML and binary data using Postman
body: <p>I am receiving a purchase order as a POST request to my c# console application, the request contain both XML data and binary data as a multipart message.</p>
  <p>The incoming request looks like this</p>
  <pre><code>------=_Part_174495_1036280534.1637933726817
  Content-Type: text/xml; charset=UTF-8
  Content-Transfer-Encoding: 8bit
  
  XML STREAM HERE
  
  ------=_Part_174495_1036280534.1637933726817
  Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
  Content-Transfer-Encoding: binary
  Content-Disposition: attachment; filename=&quot;PO.docx&quot;
  Content-ID: &lt;000D3A2BB3F41EEC928A7BA5E05A5B2C&gt;
  
  BINARY STREAM HERE
  
  ------=_Part_174495_1036280534.1637933726817--
  </code></pre>
  <p>In my console app the request comes in ok and I read the multipart message using <code>MultipartMemoryStreamProvider</code> and it works fine.</p>
  <p>I do however need to create testing scenarios for this outside production but I am having trouble sending a similar request using Postman.</p>
  <p>I have tried other settings in postman , e.g form-data: adding text and binary, and changing the raw setting &quot;text&quot; to &quot;XML&quot; but nothing seem to work.</p>
  <p>My code does not recognize the data as multipart when POSTING from Postman</p>
  <p>How can I configure postman so that it sends multipart data of both XML and binary data in the same request</p>
  <p><a href="https://i.stack.imgur.com/iXiKg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iXiKg.png" alt="enter image description here" /></a></p>