can I check if downloaded image is corrupt or not before saving it into my document directory? if yes then please tell me how? thank you
You could try to load the NSData object in a UIIImage with the initData. Then check if the return UIImage object is nil. This is not full proof methods, but should work.
NSData
UIIImage
initData
UIImage
nil