Ios 使用Parse'时请求正文流已用尽;s saveInBackgroundWithBlock:

Ios 使用Parse'时请求正文流已用尽;s saveInBackgroundWithBlock:,ios,parse-platform,objective-c-blocks,Ios,Parse Platform,Objective C Blocks,只有当我使用移动数据上传照片进行解析时,才会出现“上传失败-请求体流耗尽”错误。这意味着如果我的手机使用WiFi模式,一切都会顺利进行 有人能帮我解决这个问题吗 谢谢, 肯尼 我保存图像的代码附在下面: self.pfProfile[@"logo"] = imageFile; // Upload Profile to Parse [self.pfProfile saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {

只有当我使用移动数据上传照片进行解析时,才会出现“上传失败-请求体流耗尽”错误。这意味着如果我的手机使用WiFi模式,一切都会顺利进行

有人能帮我解决这个问题吗

谢谢, 肯尼

我保存图像的代码附在下面:

self.pfProfile[@"logo"] = imageFile;


// Upload Profile to Parse
[self.pfProfile saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
    [indicator stopAnimating];
    if (succeeded) {
        NSLog(@"Update Profile Successfully");
        // Notify table view to reload the recipes from Parse cloud
        //[[NSNotificationCenter defaultCenter] postNotificationName:@"refreshTable" object:self];
    } else {
        UIAlertController *alertController = [UIAlertController
                                              alertControllerWithTitle:@"Upload Failure" message:[error localizedDescription]
                                              preferredStyle:UIAlertControllerStyleAlert];
        UIAlertAction *okayAction = [UIAlertAction actionWithTitle:@"OK"
                                                             style:UIAlertActionStyleDefault handler:nil];
        [alertController addAction:okayAction];
        [self presentViewController:alertController animated:YES completion:nil];
    }
}];

看起来文件大小有问题。。。您能否发布用于上传照片以进行解析的代码,并指定大致的文件大小?该图像是从imagePicker捕获的,大小为300x300。您是如何修复的@肯尼乔