I have To Send 8 Byte Array To IP I have my data as NSMutableArray Contains integer values between 0 and 255 And as far as I know I have to convert it to nsdata before sending it .
NSString *error;
NSData *data = [NSPropertyListSerialization dataFromPropertyList dataTobeSent format:NSPropertyListBinaryFormat_v1_0 errorDescription:&error];
[outputStream write:[data bytes] maxLength:[data length]];
I am using this way but it gives me NSdata object with more than 8 bytes
Any Help will be appreciated