Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asynchronous Audio file upload with iOS

is there a way to upload an audiofile to my server asynchronously? I implemented it synchronously using the NSURLConnection class already.

Maybe you could also give me a short code example.

Thanks,

like image 571
hgbnerd Avatar asked Mar 29 '11 19:03

hgbnerd


2 Answers

You absolutely have to use ASIHttpRequest.

It is astoundingly easy - it's the most popular library on all of iOS.

Just select the "asynchronous" mode.

It is almost impossibly easy to use. Basically just type in the URL.

http://allseeing-i.com/ASIHTTPRequest/How-to-use

Enjoy!


It's stunning news that Ben no longer does ASIHttpRequest !

You can read all about it here:

http://allseeing-i.com/[request_release];

like image 189
Fattie Avatar answered Sep 18 '22 11:09

Fattie


The NSURLConnection will allow you to upload the file asynchronously as well. There are delegate methods that will be called you on your class . Use the NSMutableURLRequest to create your upload request the follow the following guide.

URL Loading System Programming Guide

like image 26
Joe Avatar answered Sep 22 '22 11:09

Joe