S
S
saint_avanger2013-11-25 14:15:38
iOS
saint_avanger, 2013-11-25 14:15:38

Uploading Files to a Custom Object?

Hello,
I use Quickblox. In the admin panel, in the Custom Object module, I created a table and added a field of the File type there. Then I try to save the file there and it doesn't work for me.
Tried like this:

[post.fields setObject:UIImagePNGRepresentation([UIImage imageNamed:@"profile"]) forKey:@"fileField"];

so
[post.fields setObject:[UIImage imageNamed:@"profile"] forKey:@"fileField"];

The result is the same. Nothing comes out.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question