i record the video in my i pad application and then get the path which is save in my ipad
/private/var/mobile/Applications/F1F1F9A4-41FB-4E80-9070-4A9EC8BA8823/tmp/capture-T0x24ae10.tmp.ND2S7e/capturedvideo.MOV
i also find this file my organizer. now i want to convert to this file path into NSData. how i do it?
Use this:
NSData *videoData = [NSData dataWithContentsOfFile:strURL];
NSString *filPath=@"file_url";
NSData *dt=[NSData dataWithContentsOfURL:[NSURL URLWithString:filePath]];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With