title: Create image from ArrayBuffer in Nodejs
body: <p>I'm trying to create an image file from chunks of ArrayBuffers. </p>
  
  <pre><code>all= fs.createWriteStream("out."+imgtype);
  
  for(i=0; i&lt;end; i++){
      all.write(picarray[i]);
  }
  
  all.end();
  </code></pre>
  
  <p>where <code>picarray</code> contains ArrayBuffer chunks. However, I get the error <br> <code>TypeError: Invalid non-string/buffer chunk</code>. <br> <br>
  How can I convert ArrayBuffer chunks into an image? </p>