title: Equivalent of a data-binary upload using cURL in RestSharp
body: <p>A REST API has a method for uploading the contents of a .csv file. In response, it gives us an <code>Id</code> with which we can can track our upload. I have a <em>cURL</em> version of the request and I want to have a <em>RestSharp</em> version of it.</p>
  
  <p><strong>cURL:</strong></p>
  
  <pre><code>https://api.mailjet.com/v3/DATA/contactslist/$listID/CSVData/text:plain \
  -H "Content-Type: text/plain" \
  --data-binary "@./test.csv"
  </code></pre>
  
  <p>What the API has not mentioned is that, should there necessarily be a file called <code>test.csv</code> or can I just upload the raw content of the file like this?</p>
  
  <pre><code>"email","age"
  "foo@example.org",42
  "bar@example.com",13
  "sam@ple.co.uk",37
  </code></pre>
  
  <p>So, if we have the value of <code>$listID</code> and we want to send the above content to the API how can I attach the <code>binary-data</code> to my request using <em>RestSharp</em>?</p>