4 Replies Latest reply: Feb 9, 2007 5:42 PM by mlk RSS

    unsigned char* to jbytearray

      could anyone please tell me how I could convert an unsigned char*, which is just some binary data to jbytearray.

      the c++ program is being called thru JNI and hence jbytearray.

      or is there a cleaner way to capture whatevr I get from the C++ code, and send it as is into my java module, so I can send it out through a UDP socket?