Send an image via TCP sockets from node.js to Qt client -



Send an image via TCP sockets from node.js to Qt client -

i want open image , send , send sockets connected in nodejs server. problem when i'm trying send image via socket.write(myimage); because method write() can't send image object. "solution" i've found create buffer image, re-create in buffer , parse base64 encode , send using socket.write(mybase64img), receive in qt client , decode image opencv. problem expensive. there way send image via tcp sockets?

ps: can't send url of image, want send image.

thanks!

you should able write raw image info socket without base64-encoding it, pass buffer containing binary info write(). stream info if don't have image in memory since help save on memory usage.

node.js sockets image-processing tcp

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -