Open tanmoyAtb opened 6 years ago
@tanmoy12 the data in the modified
buffer is raw pixels (normally in bgr24 format). You need to transform it to jpeg or anything else before sending to the client.
Thank you. I could not find any native library in nodejs for the conversion.
Have you tried using the data with Canvas2D on browser side?
Hello I tried streaming the
modified
chunks to front end using sockets.io. Here's a code snippet.on server side
on client side
I'm receiving data in my client side console, but the images are not getting decoded for preview