使用 iOS 异步上传音频文件 [英] Asynchronous Audio file upload with iOS
问题描述
有没有办法将音频文件异步上传到我的服务器?我已经使用 NSURLConnection 类同步实现了它.
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.
谢谢,
推荐答案
你绝对必须使用 ASIHttpRequest.
它非常简单 - 它是所有 iOS 上最受欢迎的库.
It is astoundingly easy - it's the most popular library on all of iOS.
只需选择异步"模式即可.
Just select the "asynchronous" mode.
使用起来几乎不可能.基本上只需输入 URL.
It is almost impossibly easy to use. Basically just type in the URL.
http://allseeing-i.com/ASIHTTPRequest/How-to-use
享受吧!
Ben 不再执行 ASIHttpRequest 真是令人震惊的消息!
It's stunning news that Ben no longer does ASIHttpRequest !
您可以在这里阅读所有相关信息:
You can read all about it here:
http://allseeing-i.com/[request_release];
http://allseeing-i.com/[request_release];
这篇关于使用 iOS 异步上传音频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!