Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Problem when using jbyteArray (C++) and byte array (Java)



  • Hello,
    I need to use a byte array, created in C++ part, as an argument of a Java function.

    In C++ part, I create my jbyteArray and pass it as argument :
    0_1558002296556_82d020d8-e2e7-4f46-a0ac-3baf934c00be-image.png

    Then in Java part I try to use my byte array but it dosen't work :
    0_1558002472912_79ef10be-ac42-4d14-9038-25cb68619822-image.png

    So I try to print values of my byte array in C++ and Java part :

    C++
    0_1558002561803_504ea1e5-4fc4-4cf5-a39b-17dc5ee9d336-image.png

    Java
    0_1558002584320_3cf6f947-74cd-489a-9535-b7cd76d30927-image.png

    I don't understand why I get this value in the Java part.
    If someone has any idea.

    Thanks


Log in to reply