使用iPhone将图像上传到服务器 [英] Uploading images to a server using an iPhone
本文介绍了使用iPhone将图像上传到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用iPhone将多个文件上传到服务器,而不会出现错误?
How can I upload multiple files to a server using an iPhone, without error?
我正在使用HTTP上传图片,但是有些图片丢失了.
I am using HTTP for uploading images but some of images are missing.
推荐答案
ASIHTTTRequest 库的ASIFormDataRequest方法允许您使用简单的代码为每个imag轻松地将图像附加到帖子上,并使用简单的成功和失败委托方法异步完成整个操作.
The ASIHTTTRequest library's ASIFormDataRequest method allows you to easily attach images to your post with a simple line of code for each imag, doing the whole thing asynchronously with simple success and failure delegate methods.
只是一个建议.如果要改为使用自己的代码,则必须发布代码.
Just a suggestion. Posting your code is essential if you want to use your own code instead.
这篇关于使用iPhone将图像上传到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文