in app i'm using nsurlsessiondownloadtask fetch file via http.
this class provides useful delegate interface monitor progress , getting bytes once download completes via nsurlsessiondownloaddelegate, have not been able find way access bytes downloaded (before download completes).
is accessing these bytes possible or need download file using other mechanism?
if want access bytes they're downloaded, should use data task, not download task. , if implement nsurlsessiondatadelegate
methods (specifically, didreceivedata
), can access bytes, they're downloaded.