convert byte array from signed decimal to unsigned hexadecimal in java -


my requirement sign byte array.

i have byte[] [77,-22,-35,-118,107] , have convert unsigned 1 [77,234,221,138,107] after exploring on internet, think byte array below should constructed.

byte[] {0x004d,(byte)0x00ea,(byte)0x00dd,(byte)0x008a,0x006b} 

is right approach? if yes, how byte array conversion can done? please help?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -