File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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*
 
Similar Threads
Compile-time Constants
How can it be valid?
Compile Time Constant
Assignments
Problem converting C/C++ unsigned char to JAVA