ios - When to use NSURLSessionDownloadTask and NSURLSessionDataTask? -


what difference between these 2. able data server using both.

there 3 types of concrete session tasks in context:

nsurlsessiondatatask: use task http requests retrieve data servers memory.

nsurlsessionuploadtask: use task upload file disk web service, typically via http post or put method.

nsurlsessiondownloadtask: use task download file remote service temporary file location.

you can suspend, resume , cancel tasks. nsurlsessiondownloadtask has additional ability pause future resumption.enter image description here


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -