title: Can I directly process buffer data using Sharp in NodeJs
body: <p>I get buffer data to my program from external and I want to process buffer data and send it as a buffer also.
  So I don't want to convert buffer into an image.
  How can I do this?</p>
  <p>I try this way but it not work.</p>
  <pre><code>const process = await sharp(incoming_buffer_data).grayscale();
  </code></pre>
  <p><code>fs.writeFileSync('test.jpg', process);</code> // I am using this for testing. Allways I am getting worng image format as an error</p>