Is there any way to read bytes in Java and to have the same "format" result than in C#?
Indeed in Java, bytes are signed (-128, +127), where in C# it's not (0, 255).
I'm sending files with a java application to a server who is expecting only positive bytes, so it's not working as soon as I have some negative bytes.
Concrete problem : when I'm serializing my bytes[] into json (using gson), I have values from -128 to + 127 whereas I'd like to have value from 0 to 255.
Hope it's clear enough.
Thank you.