I have a Java application which uses a native method.
There are at least two possible ways to solve this:
- Write the data to a Java datatype (say a
byte (byte-array)) and make this the return value of your native method
- Call the
write-method from your native method