saveFrame to byte array

Maybe the saveImageIO() definition could be useful in your use case from the Processing’s source code here. This will convert it to a byte array.

Previous posts:

Kf