I wanna load a video file into NSData,if I use dataWithContentsOfFile:,it will spend lots of memory when the file is too huge.
How can I get a specific data of a file with offset and length.
I need to upload the video file in pieces.
I wanna load a video file into NSData,if I use dataWithContentsOfFile:,it will spend lots
Share
You could use a NSFileHandle then seek with seekToFileOffset: and read chunk of data with readDataOfLength:.