This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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


Win a copy of Building Microservices this week in the Design forum!
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*
 
It's not a secret anymore!