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

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

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -