iCloud do not back up code how to use
<p>My IOS version is 5.1.1</p>

<pre><code>//---Set Name to the Image---  
 fileName = [NSString stringWithFormat:@"story_%@pages_%d.jpg",storyTypeID,urlImageFlag+1];
 NSString *imagePathName=[NSString stringWithFormat:@"%@",[pathToDocuments stringByAppendingPathComponent:fileName]] ;
[responseImageData writeToFile:imagePathName   atomically:YES];
 [self addSkipBackupAttributeToItemAtURL:[NSURL URLWithString:imagePathName]];


- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL
{

    assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]);

    NSError *error = nil;
    BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES]
                                  forKey: NSURLIsExcludedFromBackupKey error: &amp;error];
    if(!success){
        NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error);
    }
    return success;
}
</code></pre>

<p>When i store the image in Document directory increase the app size in iCloud</p>
