I'm trying to figure out how I can do a PUT request to my backend, with in the URL a base 64 image and some other parameters.
this is the code I'm using:
NSURL *URL = [NSURL URLWithString:[NSString stringWithFormat:@"mywebservice/api/appearances/%@?name=%@&fontsize=%@&logo=%@&active=%@",app.id,app.name,app.fontsize,[app.logoimage base64EncodedString],app.active]];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:30.0];
NSLog(@"de url ziet er zo uit: %@", URL);
[request setHTTPMethod:@"PUT"];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[connection start];
When I replace the long base 64 image string by a short random String it works.
Anyone who knows what can be the reason?
Thanks!
rendered url: http://cl.ly/0j2p1R2Q0w36