aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes JNI - byte[] to char* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "JNI - byte[] to char*" Watch "JNI - byte[] to char*" New topic
Author

JNI - byte[] to char*

Elihu Smails
Ranch Hand

Joined: Jan 12, 2005
Posts: 37
I have a byte array in java that I need to pass through to C. My C code would be looking for a char*. What would be the proper function call in order to convert a jbyteArray to a char*?


Thank you.
Jayesh Lalwani
Ranch Hand

Joined: Nov 05, 2004
Posts: 502
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNI - byte[] to char*