I am trying to download zip file from server and unzip the file to get its content in Swift. Does the normal way of NSURLSession work? Any advices for me? Thanks!
I think that the question is a little broad, so consider this as a short and generic answer.
First:
Check this answer to know how you can achive those steps.
Second:
After getting the archived file, you will unarchive it -I suggest to use a third-party library for doing this, such as SSZipArchive-.
ALSO:
You could use Alamofire to handle the downloading proccess.
Hope this helped.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With