Two Processing sketches that send a PImage using the Processing network library from client to server.
Thanks to "https://github.com/torbjornlunde/processing-experiments" for the JPGEncoder class (see https://forum.processing.org/two/discussion/20667/reliably-send-images-over-net).