Reputation: 1098
I have an image at a URL which is failing to load into an NSData.
When I paste the image URL into a Chrome incognito window, it displays successfully.
However, the following fails:
photoData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:photoUrl]];
NSLog(@"data: %@", photoData);
The NSLog outputs:
data: (null)
Am I doing something wrong? I'd appreciate any advice, thanks.
Edit: The URL has extended ASCII characters in it, such as à.
Upvotes: 0
Views: 118