I've also created a test with I've also created a test with various releases for the byte array data, but always the same error on non image files: LibRaw RawProcessor; jsize len = env->GetArrayLength(bufferBytes); //jbyte* buffer = env->GetByteArrayElements(bufferBytes, 0); jbyte* buffer; env->GetByteArrayRegion(bufferBytes, 0, len, buffer); int result = RawProcessor.open_buffer(buffer, len); //env->ReleaseByteArrayElements(bufferBytes, buffer, 0); if (result == 0) RawProcessor.recycle(); reply
I've also created a test with various releases for the byte array data, but always the same error on non image files: