I want send an image from my App to web service, to do it, im send the data like an NSData, but it do nothing:
NSData *imagen= UIImagePNGRepresentation(windowImage);
The Web Service wait the data like: base64Binary
To send this type of data, i know that i need convert the NSData to NSString using the famous method “base64Encoding”
NSData *imagen=UIImagePNGRepresentation(windowImage);
NSString *encoded= [imagen base64Encoding];
And i Send the data like SOAP:
NSString *soapMsg= [NSString stringWithFormat:............<imagenBase64>%@<imagenBase64>,encoded];
Where is the error? I need to do other conversion?
See the following answers. Do like this.
Now, send this base64string to your web service.