title: What array format to use when sending PDF file in JSON using Node.js
body: <p>We are developing a Node.js API using Express.js. One of our functions receives some ID. We take that ID and return a pdf file (that is stored on AWS) in a json response that looks something like this:</p>
  <pre><code>{
      ID: &quot;id10&quot;, 
      pdf: [21, 23, 34, 46, ...]
  }
  </code></pre>
  <p>The problem that we are facing is that we are not sure what format should we convert that pdf into. Should we convert to it Base64 string, Uint8 array, binary array or something else?</p>
  <p>The pdf file size will never exceed 200kb, so response size and response time should not be an issue.</p>