I\'m trying to send an audio file to a PHP server. Here is the Objective-C code:
NSData *data = [NSData dataWithContentsOfFile:filePath]; NSLog(@\"File Size
Try encoding your binary data before you send it over the pipe (and then decode when it gets to the other end). See this SO thread for ideas for Base64 encoding code.