In my iPhone application, I need to upload images to the server. I'm not really worried about safety and materials, I just need a fast and reliable method. I can embed my image data in an HTTP request, or I can create an FTP connection to the server (using Apple's SimpleFTPSample). The disadvantage of each method is: - HTTP: timeout if the image is too large without renewing, and there is no way to find out the download progress (%)? - FTP: sometimes I got NSStreamEventErrorOccurred and I donβt know why (when testing on the device, on the simulator it works fine. Maybe 3G errors?)
My question is: do you have any experience with this problem (upload image to server)? Which method do you recommend? FTP, HTTP or another method? Thanks in advance.
source
share