When I pass a byte array (byte[]) as an argument to a Python function from the Java side and turn it into a numpy array, the result from np.frombuffer will have the first 16 bytes incorrect (and the other bytes are correct). But, this issue only occurs when the length of the array exceeds 392 byte.
When I pass a byte array (byte[]) as an argument to a Python function from the Java side and turn it into a numpy array, the result from np.frombuffer will have the first 16 bytes incorrect (and the other bytes are correct). But, this issue only occurs when the length of the array exceeds 392 byte.
See this SO question for more details.