i'm trying to read image property from a url like :
http://www.example.com/ws/img/8
As it's a webservice, i need to pass authentication to URL. I don't want to download the image to read it's properties. So i'm trying to use CGImageSourceCreateWithURL like this:
CGImageSourceRef imageSourceRef = CGImageSourceCreateWithURL((__bridge CFURLRef)[NSURL URLWithString:@"http://admin:admin@www.example.com/ws/img/8"], NULL);
CFDictionaryRef props = CGImageSourceCopyPropertiesAtIndex(imageSourceRef, 0, NULL);
But props
still return null.
Is there a way to access image properties with authentication? (If i download image through RestKit function, it works of course)
Thanks