Skip to content

Can I download big image without crash #90

@smolskyaleksey

Description

@smolskyaleksey

If I download big image via

self.session.dataTask(with: request, completionHandler: { [weak self] data, response, error}

image stored inside response. And I can catch crash. How can I use URLSession's method

func downloadTask(with request: URLRequest, 
completionHandler: @escaping (URL?, URLResponse?, Error?) -> Void) -> URLSessionDownloadTask

to store image in file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions