NSURLConnection分块编码上传-如何? [英] NSURLConnection chunked encoding upload - How?
问题描述
我需要创建一种使用分块编码上传字节流的方法。
I need to create a way to upload a bytestream using chunked encoding.
我有一个包含音频文件的字节数组,我想发送该文件
I have a byte array that contains an audio file, I would like to send that file to a server using a chunked stream.
我已经能够通过本机套接字进行分块上载,但是我真的很想通过一个NSURL来做到这一点。 (NSURLConnection?)库。
I've been able to do a chunked upload via a native socket but I would really like to do this via one of the NSURL (NSURLConnection?) libs. Is that possible?
谢谢!
推荐答案
可以做到这一点吗?使用ASIHTTPRequest(可在此处获得): http://allseeing-i.com/ASIHTTPRequest/How-to -use
You can do this using ASIHTTPRequest, available here: http://allseeing-i.com/ASIHTTPRequest/How-to-use
向下滚动到直接从磁盘流请求正文
Scroll way down to "Streaming request bodies directly from disk"
这篇关于NSURLConnection分块编码上传-如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!