By ajinkyashelar
on Wed, 06/20/2012 - 17:10
hi,
I am having problem with loading the dataset...
I download the dataset from url and write it to the Documents Dir
as follows:
the xml file,
[CODE]NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString *documentsDir = [paths objectAtIndex:0];
NSString *filePathxml = @"http://../../../tracker/tracker.xml";
NSData *dataxml = [NSData dataWithContentsOfURL:[NSURL URLWithString:filePathxml]];
[dataxml writeToFile:[NSString stringWithFormat:@"%@/tracker.xml",documentsDir] atomically:YES];[/CODE]
and the dat file, here the trackerdat.xml is actually a tracker.dat file which is just renamed so that i can download it..
[CODE] NSString *filePathdat = @"http://../../../tracker/trackerdat.xml";
NSData *datadat = [NSData dataWithContentsOfURL:[NSURL URLWithString:filePathdat]];
[datadat writeToFile:[NSString stringWithFormat:@"%@/tracker.dat",documentsDir] atomically:YES];[/CODE]
I can see both tracker.xml and tracker.dat file in organiser in doc dir.
but while loading the dataset in the - (BOOL)loadDataSet:(NSString *)dataSetPath method it does no loads the dataset, giving...
Failed to load data set. in here
QCARutils: Failed to load target
it was loading the dataset earlier when i had done the same thing... but now its just not loading the dataset which i download from server in docs dir.. please help..
Re: problem with loading the dataset
Re: problem with loading the dataset
Re: problem with loading the dataset
Re: problem with loading the dataset