How to Upload video to server from iPhone?
问题 -(IBAction)uploadToServer :(id)sender { NSString *str1=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"intro.mp4"]; NSLog(@"str1=%@",str1); NSString *escapedUrlString = [str1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"escapedUrlString=%@",escapedUrlString); NSURL *videoURL = [NSURL URLWithString:escapedUrlString]; NSLog(@"videoURL=%@",videoURL); NSData *newdata = [NSData dataWithContentsOfFile:escapedUrlString]; webdata=[NSData dataWithData