I am trying to achieve the following:
1) I have a byte array on the java side that represents an image.
2) I need to give my native code access to it.
3
Byte array
I had to something similar, I returned a container (Vector or something) of Byte arrays. One of the other programmers implemented this as (and I think this is easier but a bit silly) a call-back. e.g. the JNI code would call a Java method for each response, then the original call (into the JNI code) would return. This does work okay though.