I want to send BigInteger
data in socket and my friend wants to retrieve the data.
I am using Java, but my friend uses C#.
String str = "Hello";
BigInteger big = new BigInteger(str.getBytes);
byteToBeSent[] = big.toByteArray();
I am sending this byte array (byteToBeSent[]
) through socket. And my friend wants to retrieve "Hello".
How is this possible?