I need to know image dimensions before downloading it. I searched and found it is possible in .Net by reading the header of html response! Link
Can I do that in iPhone? If yes, How?
Thanks
I need to know image dimensions before downloading it. I searched and found it is possible in .Net by reading the header of html response! Link
Can I do that in iPhone? If yes, How?
Thanks
You can not able to get the dimension of the image that is height and width before downloading the image. How ever you can get the size of image before downloading the image in the delegate method below is the code
-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
float expSize = 0;
expSize = response.expectedContentLength;
}
where expSize is the size of the image.