Closed rolson closed 2 months ago
The code here:
private func loadFromURL(url: URL) async throws { let (data, _) = try await ArcGISEnvironment.urlSession.data(from: url) DispatchQueue.main.async { [weak self] in if let image = UIImage(data: data) { self?.result = .success(image) print("image success: \(url.absoluteString)") } else { // We have data, but couldn't create an image. self?.result = .failure(LoadImageError()) print("image failure: \(url.absoluteString)") } } isRefreshing = false if let refreshInterval, refreshInterval >= 1 { progressInterval = Date()...Date().addingTimeInterval(refreshInterval) } }
Causes large amounts of data to be written to the console:
image success: data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUVFRgVFRUYGBgaGBwYGBgZGBwYGRgZGRgZGRgYGRkcIS4lHB4rHxgZJjgnKy8xNTU1HCQ7QDs0Py40NTQBDAwMEA8QHhISHjQkISs0NDQxNDQ0NDE0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NP/AABEIAMIBAwMBIgACEQEDEQH/xAAbAAACAwEBAQAAAAAAAAAAAAADBAECBQAGB//EADsQAAEDAgQEAwUGBgIDAQAAAAEAAhEDIQQSMUEFUWFxIoGRBhMyocEUQlKx0fAjYnKCwuEVklOy8TP/xAAZAQADAQEBAAAAAAAAAAAAAAAAAQIDBAX/xAAlEQACAgICAgEEAwAAAAAAAAAAAQIREiEDMUFRExQiMnEEUmH/2gAMAwEAAhEDEQA/AMmnUUvbKUYSE3SErjxolAH0kriDAWw+lZZGPZCcex0JsddaOGYs6iwk6Lbw1OyXILE6IVPepirSskHtIWNEsZD1LnpRj4UueiiTnvQc91Ss/kgteqUQqzQY+FFSuk/fJWtiEKLsfQzVxBQmuQBUXe8utKpCGXOVWCVUOJRKYTETlV8quQquKVAAqBJVk84FJ12lViOilN55rTwuJWRTaitdBQ4lJnp6Tg5NsCwcDilu4d4KnGhNjVOpCeo1lnypZVhDBGi6qhmolhUUOeih9l6lRSx6ASozwihjPvFyU96pRQhV+FPJFoUCFt/ZlU4eFm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SqLtj/wUpU5mNbuOugGg63XOboY8M3i1yfpYJl+XO4NlokCCZiWybjr+SVc7wjT72vPT10CJOhPRJuTG0AxvJ/fouZSfEgSQDOwAk3J0V6bWgmxiQ6dh0RmvbldN+xsYm456lKMvYJoGMG/8Mea5ArV/EddeX+1yrNBlEpiPhXUtuy5co8h5CnX98kVunl9Vy5Uuw8jh+D+0pOlq3+n6rlyb7GcND3UbO7/Qrlyzl5Euyrf0XYzQf1D6rlyuHQyg/X80xU+HzULlaEi+HNgpd8RXLlMfJRV+jP6fqpxu372XLlTEQPu+SM74f7/ouXJoBF2p7H8ygVHm9z6rlyzn0wY2zVvf/FDfqf3spXKJfiiQuF1/sd/kgVtD2/yChctYfiaRI4eP4b/6v8Wq7fvdh/ipXJS6GxjDj+F6/m1AHwD+r9Fy5Zx8Eolmg7/RypR+D+x3/s1cuUy/JEsLivg9P/YLMJ8X9n1XLlgu3+yH2NlcuXKyT//Z image success: https://i1.wp.com/vickielester.com/wp-content/uploads/2013/02/christopher-walken.jpg?fit=768%2C1024&ssl=1 image success: https://logos-download.com/wp-content/uploads/2016/11/ESRI_logo_logotype.png
The code here:
Causes large amounts of data to be written to the console: