Upload string using AFNetWorking, prompt: Request failed: request is too large

  ios, question

I will replace the picture with nsdata, and then use base64encoding to upload the string generated after encoding to
Server, this is the problem.
Error message: err: errordomain = com.alamofire.error.serialization.responsecode =-1011 “requestfailed: request too large (413)”
The ASIHTTPRequest library used by my colleague is no problem. how do you solve it?
Code:

UIImage *img = [self createThumbnailWithSourceImge:sourceImg andNewSize:sz];
 
 data  = UIImageJPEGRepresentation(img, 0.01);
 NSString *encodedSTR  = [data base64Encoding];
 NSString *currentUrl = @"/app/b/test";
 Nsstring * urlstr = [nsstringstringwithformat: @ "percent @ percent @?  PicStr= percentage @ ",baseurl, currenturl, encodedstr];
 NSURL *url = [NSURL URLWithString:urlStr];
 NSURLRequest *request = [NSURLRequest requestWithURL:url];
 AFHTTPRequestOperation *op = [[AFHTTPRequestOperation alloc]initWithRequest:request];
 op.responseSerializer = [AFJSONResponseSerializer serializer];
 [op setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject) {
 // NSLog(@"success: Percent @), responseobject);
 successBlock(responseObject);
 } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 failureBlock(error);
 }];
 [op start];
 
 
 //   [manager POST:urlStr parameters:nil
 //         success:^(AFHTTPRequestOperation *operation, id responseObject) {
 // NSLog(@"success: Percent @), responseobject);
 //     } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 // NSLog(@"err: percentage @",error);
 //     }];

After the picture is converted to NSData, you don’t need to transfer String, just upload it directly.

AFHTTPRequestOperationManager *manager = [[AFHTTPRequestOperationManager alloc] initWithBaseURL:[NSURL URLWithString: BASEURL]];
 NSData *imageData = UIImageJPEGRepresentation(img, 0.1);
 NSDictionary *parameters = @{@ "parameters you need": XXXXXXX};
 AFHTTPRequestOperation *op = [manager POST:currentUrl parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {
 
 [formData appendPartWithFileData:imageData name:paramNameForImage fileName:@"photo.jpg" mimeType:@"image/jpeg"];
 } success:^(AFHTTPRequestOperation *operation, id responseObject) {
 NSLog(@"Success: Percent @ * * * * * Percent @), Operation. Responsestring, ResponsesObject);
 } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 NSLog(@"Error: Percent @ * * * * * Percent @ ",Operation. Response String, Error);
 }];
 [op start];