I am trying to send an image from node js script to python script using python-shell. From what I know, I should use binary format. 
I know that in python side I can use this 2 functions:
import sys
sys.stdout.write() and sys.stdin.read()
But I am not sure how the node js side gonna be? (Which functions can I use and how can I use them?)
I tried to encode the image and send it but It did not work. So I used Socket programming instead and It worked wonderfully.
Sending Images from nodejs to Python script via standard input/output