I'm creating a iphone clients that talks to a wcf service (I do not have control over the server, so no changes can be made here).
I need to send an image to this server, along with some other information. It must be send using json.
I'm using restkit to send and receive data.
The problem is, that the binary data must be send as a byte array. Not as a base64 encoded string.
How do I get from an UIimage to a json string that looks like this
"Picture":{"Content":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,..........
I'm open to a solution that doesn't use restkit.