I am using Dropbox Sync API sdk it display all folder and file but we can not download file i am using this 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
I am getting NSData but i can't store in document directory. I check below links but no success
Dropbox Sync API iOS copy files to app documents
Data syncing with DropBox API and iOS
Please Help me.