madmik3
madmik3

Reputation: 6973

base64 http post using iphone sdk

I want to post some binary data to a website. The file can be somewhat large so I convert it to base64 and composite an url and post the url to the website with NSString stringWithContentsOfURL.

This works but it's really much slower than I think it should be. In part because my servers has a 2048 character url limit. Is there a better way to post the data?

thanks!

Upvotes: 0

Views: 400

Answers (1)

Anon.
Anon.

Reputation: 59993

This works but it's really much slower than I think it should be. In part because my servers has a 2048 character url limit. Is there a better way to post the data?

I would suggest using an actual POST request instead of cramming it into a sequence of GETs.

A short overview of the basics:

http://developers.sun.com/mobility/midp/ttips/HTTPPost/

Upvotes: 1

Related Questions