title: Sending uint8array with axios
body: <p>I'm trying to send a uint8arrray to an endpoint. The post request gets send as these weird characters, for example: }Û²¤:åûDÌ¿p¿
  
  <pre><code>return new Promise((resolve, reject) =&gt; zlib.gzip(upload, (err, buffer) =&gt; {
      if (err) {
        return reject('An error occured');
      }
  
      return axios.post(endpoint, buffer, {
        headers: {
          'Content-Type': 'text/plain',
          'Content-Encoding': 'gzip',
        },
      })
      .then(response =&gt; resolve(response))
      .catch(error =&gt; error &amp;&amp; reject(error.response.data.description))
    }));
  </code></pre>
  
  <p>Thanks</p>