How to send image as parameters (param) with POST with AFNetworking
问题 I need to send image as param like URl : some API params : {profileImage:string(file)} Means in param list only i have to send image file as string. i used the below code. but it is not working. NSData *dataImage = [[NSData alloc] init]; dataImage = UIImagePNGRepresentation(selectedImage); NSString *stringImage = [dataImage base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength]; NSDictionary *params = {profileImage : stringImage} NSString *url = [NetworkRoutes