I am working on functionality, where i needs to send array of buffer containing imageData In object along with some other fields, SAMPLE INPUT : I tried using JSON.stringify(payload) but it’s not working, might be the issue with buffer, i am not sure it’s converting back buffer properly or not. Answer A way to deal with this just pass payload
Tag: buffer
Bufferizing data from stream in nodeJS for perfoming bulk insert
How to bufferize efficiently in nodeJS on events from a stream to bulk insert instead of unique insert per record received from the stream. Here’s pseudo code I’ve got in mind: Does this look realistic? Is there any possible optimization? Existing libraries facilitaties that? Answer I ended up with a no dependency solution.