I have been following this great guide on setting up bluetooth between 2 iPhones.
However, what I need to do is send binary (for instance a video) instead of text.
I load the data in to a NSData
localData = [NSData dataWithContentsOfFile:videoPath];
Then a few methods on send it
[self.gameSession sendDataToAllPeers:localData
withDataMode:GKSendDataReliable
error:nil];
But my application crashes. Do I need to encode it?