title: Get File Size of File to download using FTP
body: <p>I am using the simpleFTPsample of apple. I want to display a progress bar of the file being downloaded. I understand it needs to be done in:
  <br>
  <code>
   - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode
  </code>
  <br>
  under the case:
  <br>
  <code>
    case NSStreamEventOpenCompleted: 
  </code></p>
  
  <p>how do i retrive the file size from the NSInputStream?</p>
  
  <p>I have also tried:</p>
  
  <p>i have set:
  <br>
  <code>
   [self.networkStream setProperty:@"YES" forKey:(id)kCFStreamPropertyFTPFetchResourceInfo];
  </code>
  <br>
  and then:
  <br>
  <code>
   NSLog(@"size: %@",[self.networkStream propertyForKey:(id)kCFStreamPropertyFTPResourceSize]);
  </code>
  <br>
  but the result is null...</p>