title: How to download file from dropbox using Dropbox Sync API iOS SDK
body: <p>I am using <a href="https://www.dropbox.com/developers/sync/sdks/ios" rel="nofollow noreferrer">Dropbox Sync API sdk</a> it display all folder and file but we can not download file
  i am using this code:</p>
  
  <pre><code>  DBFilesystem *filesystem;
    DBFile *file = [_filesystem openFile:info.path error:nil];
     NSData *imagedata=[file readData:nil];
    [fileMan createFileAtPath:Image_filePath  contents:**data** attributes:nil];
    NSLog(@"flao=%d",[file writeData:imagedata error:nil]);
    // it return 1
  </code></pre>
  
  <p>I am getting NSData but i can't store in document directory.
  I check below links but no success</p>
  
  <p><a href="https://stackoverflow.com/questions/18494546/dropbox-sync-api-ios-copy-files-to-app-documents">Dropbox Sync API iOS copy files to app documents</a></p>
  
  <p><a href="https://stackoverflow.com/questions/4811932/data-syncing-with-dropbox-api-and-ios">Data syncing with DropBox API and iOS</a></p>
  
  <p>Please Help me.</p>