views:

101

answers:

1

hi

i want to provide a resume option for user to download. if user quits application and relaunch it i want to resume from where it stooped ..... is ASIHTTPRequest allows this ... any one as idea on this if any idea....

Thanks in advance...

A: 

yes it works...
nice wrapper.
set allow resumedownlod property to yes.
and provide temporary download path.

ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request setTimeOutSeconds:60];
[request setDelegate:self];
[request setAllowResumeForFileDownloads:YES];
[request setDownloadDestinationPath:fileDownloadPath];
[request setTemporaryFileDownloadPath:temporaryPath];
[request setDidFinishSelector:@selector(requestDone:)];
[request setDidFailSelector:@selector(requestWentWrong:)];
[self downloadQueue] addOperation:request];

jeeva