-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I download big image without crash #90
Comments
Why do you close issue without any answer? |
Hello @smolskyaleksey, Sorry for not writing before. I haven't been able to reproduce this issue. Could you help me with additional steps to reproduce? How big was the file you were trying to download? Is this still an issue for you? |
Yes, try to download big image above 100 mgb. dataTask represent image in memory in data parameter. U can crash because you don't have enough memory. |
OK! Will try to reproduce, this might be caused because of limitations in URLSession so it might require us to implement background downloads in order to make this work. WIll investigate further. |
You can use func downloadTask(with request: URLRequest,
completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask It downloads file directly in file system |
If I download big image via
image stored inside response. And I can catch crash. How can I use URLSession's method
to store image in file
The text was updated successfully, but these errors were encountered: