title: How to read image file as base64 and send it back to request?
body: <p>I am using the request module for reading image file from URL, and then I send it to request as JSON but the image data is corrupted.</p>
  
  <pre><code>const url = 'xxxxx';
  
  request(url, null,(error, response, body) =&gt; {
      if (error) {
          console.log(error);
      }
     return res.status(200).json(body);
  });
  </code></pre>
  
  <p>I don't get any error but the data is:</p>
  
  <blockquote>
    <p>"�PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0002�\u0000\u0000\u0001�\u0008\u0002\u0000\u0000\u0000i�\nc\u0000\u0000
    \u0000IDATx��]\u0007x\u0015E�&amp;\u0004�&amp;�t\u0014�\u000f\u0010�\"���4����J\u0011A����J\n齓�;��....</p>
  </blockquote>