Great job thanks for your awesome solution , there was a small issue in the solution but after fixing it every thing went good
it was the ID fixed to 1 , the correction change it to be dynamic as the id parameter
private byte[] getBytes(int id, byte[] Value)
{
byte[] val = new byte[2 + Value.Length];
val[0] = (byte)id;
val[1] = (byte)Value.Length;
Value.CopyTo(val, 2);
return val;
}
Dear Aljbri ,
Great job thanks for your awesome solution , there was a small issue in the solution but after fixing it every thing went good
it was the ID fixed to 1 , the correction change it to be dynamic as the id parameter
private byte[] getBytes(int id, byte[] Value) { byte[] val = new byte[2 + Value.Length]; val[0] = (byte)id; val[1] = (byte)Value.Length; Value.CopyTo(val, 2); return val; }