Downloading file with ASIHTTPRequest - iPhone app -
i using asihttprequest source code download file remote location. surprisingly, download happens nothing happens after that. have put in log statement in handlebytesavailable method , can see entire file worth of data downloaded in parts , added filedownloadoutputstream variable.
but once bytes have been downloaded, nothing happens. delegate methods not called (neither fail, nor success).
can please tell me happening? or correct way download file remote server using asihttprequest?
thanks.
few more details
on putting more log statements, appears after bytes have been downloaded, request class gets timeout response. , after delegate methods not called. not sure why timeout should happen because can see logs bytes of file have been downloaded already. help?
you can set download location on request:
asihttprequest *request = [asihttprequest requestwithurl:url]; [request setdownloaddestinationpath:@"/users/ben/desktop/my_file.txt"]];
Comments
Post a Comment