Sending binary through HTTP with React-Native Fetch API
<p>Is there a way to use the Fetch API to upload a binary file (for instance to S3 using a signed URL) ?</p>

<p>That would be a simple PUT for some 'application/octet-stream'. </p>

<p>The XHR library is working, but I believe Fetch is better, especially in a React-Native environment.<BR>
Does React-Native Fetch support <code>Blob</code> nowadays?</p>

<p>Ideally I would like to do something like this, but <code>Blob</code> is undefined:</p>

<pre><code>fetch('https://s3.amazonaws.com/signedUrl/', {
  method: 'PUT',
  headers: {
    'Content-Type': 'application/octet-stream',
  },
  body: Blob(filePath)
})
</code></pre>