Returning char from native Method as bytearray
843829Apr 21 2004 — edited Apr 21 2004Hello everyone.
First of all, i must admit that i am quite new to using JNI.
I got the following problem:
(I don't want to use GL4Java or something similar, just do this little thing)
I am reading pixels into a *char in c++ using glReadPixels. Now i want to return this to Java as a bytearray, where i want to go on working with this array.
I guess this should be quite a simple task, but spend quite a lot of time to figure it out, but its no use.
Thank you all in advance,
Chris