views:

187

answers:

1

I plan to use ASIHttpRequest for downloading files from back-end server. Before actions, post questions here to know more about this feature.

As sample source codes given : ( demonstrate downloading remote JPG file )

    ASIHTTPRequest *request;
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASIHTTPRequest/tests/images/small-image.jpg"]];
[request setDownloadDestinationPath:[[NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] stringByAppendingPathComponent:@"1.png"]];
[request setDownloadProgressDelegate:imageProgressIndicator1];
[networkQueue addOperation:request];

My questions are:

  1. It can download any formats files, such as MP3, video file etc ? Any limitations, i,e, file size, time out ?

Seem like that just need set up the remote file path, "http://allseeing-i.com/ASIHTTPRequest/tests/images/small-image.jpg", then it can download everything remotely with HTTP protocol.

  1. How about the resume function ?

It provides setting for "RESUME" via YES/NO, is that enough for normal resume feature ? For example, if the file is big, pause it , then hope to resume it from last time.

Thanks for any inputs or comments, I need investigate this before adopting this into my project. Thanks in advance !

A: 

You posted this on the asi http request group at the same time, and got an answer there:

http://groups.google.com/group/asihttprequest/browse_thread/thread/34eced6759cb7327/47aef091a77331fd?lnk=raot#47aef091a77331fd

(If you're going to post your question in multiple places at the same time, it'd at least be polite to record the fact that you've already got an answer!)

JosephH
oh,yes,thanks very much. I really get the answer from asihttprequest group, but just forget that still question here. thanks for your reminding.
Forrest