I broke up a file into 50 mb packets on the server side and when I receive it on the iPad, I receive as NSData object through NSURLConnection. To restitch the data, do I create an empty NSMutableData object and just appendData the packets back together in order? Or am I supposed to use NSFileHandle, write to file, seek to end of file, write next file, seek to end of file, rinse, repeat? Thanks!
Related Questions in IPHONE
- How to control the volume of an iPhone programmatically in objective-c
- my website crash on safari The site sometimes crashes and I can't recover the crash
- Postal Framework crash in iPhone but runs successfully in simulator
- Xcode 15 building failure when using iphone 15 as simulator, using ios 17
- Images uploaded via Active Storage not displaying in Active Admin or on certain devices
- Any problem with creating provisioning profile with old Iphone?
- Does anyone know how to make iPad layout the same as iPhone's? Size wise the text and overall layout get's smaller when I run the app on the iPad
- Keyboard not appearing when connecting smart card reader to iPhones with type-c port. i.e. iPhone 15/ 15 pro
- Access the list of SIM mobile numbers installed in the iPhone
- Can we produce haptics and record from microphone the haptic sound at the same time on iOS?
- SwiftUI's localized string do not load from main bundle despite using the main bundle identifier (an xcode bug?)
- Cordova iOS only app upload through transport requires WKWatchKitApp
- Amazon s3 video is not played on Iphone
- build getting failed for ios xcode build -flutter app
- "Error when Importing 'mysdk' into iOS Demo App: dyld Library not loaded: @rpath/MQTTClient.framework/MQTTClient"
Related Questions in NSDATA
- Download mp4 file from link and save to documents directory in IOS Swift or Objective-C
- How to find and remove strings in nsdata
- Convert Data to stream of CVPixelBuffer
- Release NSData not release all memory
- How to import AVIF image in iOS by PHPicker
- How to get the NSData from a file path in KMM?
- Hexadecimal String to Byte Array Conversion
- Create UnsafeMutableRawPointer from NSData
- NSData subdataWithRange crashing
- NSMutableData increment the underneath pointer and pass it to other APIs
- In swift, how to download a json file from storage in Firestore?
- In Xcode 14 & iOS 16 - purple warning when downloading an image from URL with NSData dataWithContentsOfURL
- Display image on UIImageView using Web server image
- iOS Swift how to convert AVCaptureSynchronizedSampleBufferData/AVCaptureVideoDataOutput to Data format or URL format
- Assigning Null to NSMutableData or checking if its empty
Related Questions in NSFILEHANDLE
- Different NSFileHandler behavior in "Run" and "Test" modes
- NSTask/Process + NSPipe + NSFileHandle in Modern Swift Concurrency
- How to ignore cache when repeatedly reading from disk
- Reading NSTask output persistent memory usage
- How can i output my program results to a file
- Is there any way to emulate user's input in XCTest function?
- How to read all remaining output of readInBackgroundAndNotify after NSTask has ended?
- Memory issue while converting big video file path to NSData. How to use InputStream/FileHandle to fix this issue?
- What's the most efficient way / strategy for persistent (not in memory) in app logging of text?
- NSFilSize is only returns 192 for any file path
- Not able to read IHDR chunk of a PNG file
- How can I tell when a FileHandle has nothing left to be read?
- What is the best way to store large file data into Coredata in iOS
- Character encoding issue for French characters in iOS
- App crash when I my app in background and locked
Related Questions in NSMUTABLEDATA
- reading data compressed by NSMutableData using the lz4 library in python
- NSData subdataWithRange crashing
- NSMutableData increment the underneath pointer and pass it to other APIs
- Storing WAV using NSData and NSKeyedArchiver in Objective-C
- Appending and extracting objects from NSMutableData
- Firebase swift runTransactionBlock : Cast from 'MutableData?' to unrelated type 'String' always fails
- iOS: How to get a specific string from a Data containing Strings and an image?
- Parse Mutable Live Data to Array in Kotlin
- Swift - Sending binary file to a server (convert to string request)
- Modifying too many bytes of Data object crashes swift app
- Saving Data as UIImage while preserving the original image characteristics
- NSMutableData to NSString
- find item and then remove it in NSMutableData array
- How to combine two pdfs without losing any information?
- Is it possible to append Data of audio file in AVAudioPlayer?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It really depends on the memory constraints. If the x00M files are too much to handle in memory with the
NSDataobject you will have to go the second route (which I think is a great approach). You can check with Instruments if you are within acceptable limits.Seeing that you want to do this on an iPhone, it is very likely that you will have to do it via the file system.