Send image over GPRS

Ok, I got that write is sending binary data to the serial port.
I made a mistake that's all, I just need to understand it, this topic is going to be a long one instead of give me advices.

You answered me, thank you ,but if you don't want to help me, so stop it, because I need help not to ask each time something.

You could answer me something like that:

  • The print does something that you don't need, use write instead that writes binary data

You told me to create a DELIMITERS between each byte, maybe I misunderstood what you are saying .... what I can imagine is to create a buffer "10;2;2;" and then convert each byte to char on the nodejs side.

I don't have any idea how does it work with a normal socket, I know how to exchange message between two machine but I don't have any clue to send a file.