communicate unsigned char from C++ to Java
I am calling a Java native executable from a C++ program.
I would like to communicate the red, green, and blue values of an image, which are unsigned chars in my C++ program (varying between 0 and 255) to my Java program.
Unfortunately, chars in C++ are 1 byte and chars in Java are 2 bytes.
What's a simple and fast way to make this communication?
Thanks for looking at this!

