我有一个像这样的Java代码...
OutputStream os = null;
URLConnection conn = null;
conn = getConnection(url, fileSize,index, size,fileId, fileName); //this method's return type is URLConnection
os = conn.getOutputStream();
os.write(buf); //buff is a byte array
os.flush();我用Objective-C编写了这段代码,在将NSURLConnection对象分配给NSOutputStream时遇到了一个问题。有人能帮我做到这一点吗?
发布于 2011-12-27 19:59:35
请参阅苹果的文档here。这项技术不是那么简单,但文档是详尽的。
https://stackoverflow.com/questions/8642787
复制相似问题