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!

[408 byte] By [BrigitAnanyaa] at [2007-11-27 4:54:07]
# 1
I placed this question into the Networking forum.Please check: http://forum.java.sun.com/thread.jspa?threadID=5174857&tstart=0
BrigitAnanyaa at 2007-7-12 10:08:42 > top of Java-index,Java Essentials,Java Programming...