Passing byte array to java library

GiorgiDGiorgiD USMember ✭✭

I am creating a binding for a java library and the library needs to be initialized by a byte array. As the java byte range is -128..127 and C# byte range is 0..255 I can't use .net byte array because I can't put negative numbers in the array. I tried changing the parameter type to int[] or to Java.Lang.Byte[] but in that case it throws an exception at runtime because the parameter type is embedded in the const string __id which is used to invoke the java method and changing parameter type causes the java method lookup to fail.

How can I solve this issue ?


Sign In or Register to comment.