Reputation: 95
In my iPhone app am doing image upload to server using ASIHTTPRequest. But its taking more than 20 seconds to upload. Is there any better way to upload images to server.? Please help!!!
Upvotes: 0
Views: 1648
Reputation: 4856
You can use UIImageJPEGRepresentation
and set a low quality compression value in order to reduce the size of the image. Here you can find more information.
Upvotes: 1
Reputation: 2456
You could compress the image data and upload if that reduces the size of the image and is a feasible thing to do. You are aware that the upload speed as well as definition of 'better way' are dependent on your 1. connectivity bandwidth, 2. Size of image. 3. Expected upload time. You could look into other frameworks such as MKNetworkKit or AFNetworking if they give you better performance.
Upvotes: 0