Question

I created a custom object field of type file and I tried to upload an image. I have tried both

[object.fields setObject:[UIImage imageNamed:@"img.png"] forKey:@"file"];

and

[object.fields setObject:UIImagePNGRepresentation([UIImage imageNamed:@"img.png"]) forKey:@"file"];

but neither works. Do anyone know how to get this work?

Was it helpful?

Solution

At now Custom objects don't contain binary data itself. As a possible variant you can do the next:

QuickBlox team is going to release iOS SDK v.1.8 with CustomObjects file API soon, feel free to check developers section http://quickblox.com/developers/IOS#Download_iOS_SDK

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top