2

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?

yhw42
  • 3,334
  • 2
  • 27
  • 24
Alfer Kwok
  • 23
  • 4

1 Answers1

1

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

Rubycon
  • 18,156
  • 10
  • 49
  • 70
frankWhite
  • 1,523
  • 15
  • 21