My understanding is that NSURLSession is only for downloading. I need to upload.

-Carl

> On Oct 7, 2016, at 12:42 PM, Shawn Erickson <shaw...@gmail.com> wrote:
> 
> Any reason you aren't NSURLSession for this? You can provide a file stream in 
> the request, etc.
> On Fri, Oct 7, 2016 at 12:14 PM Carl Hoefs <newsli...@autonomy.caltech.edu 
> <mailto:newsli...@autonomy.caltech.edu>> wrote:
> My iOS 9.3 app uploads large (100MB) video files to a backend OS X server for 
> processing. If I use write(2) on a socket from a background thread, it works 
> but I get no feedback on the progress of the upload until it's completed. And 
> if the transfer gets interrupted, it must restart from the beginning.
> 
> I've noticed that certain classes such as AVAssetExportSession provide a 
> 'progress' property, so I'm wondering:
> 
> 1) Is there a better way to accomplish large data transfers?
> 2) Is there a way that provides progress information?
> 3) Is there a way that provides checkpointing in case of interruptions?
> 
> -Carl
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com 
> <mailto:Macnetworkprog@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/macnetworkprog/shawnce%40gmail.com 
> <https://lists.apple.com/mailman/options/macnetworkprog/shawnce%40gmail.com>
> 
> This email sent to shaw...@gmail.com <mailto:shaw...@gmail.com>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to