Reputation: 4330
Is there any way to get the data from a Class that has a PFFile pointer (photo)?
let query = PFObject(classname: "Person")
query.includeKey("photo")
[Error]: field photo cannot be included because it is not a pointer to another object
So i don't have to do another request to parse.com after finishing the first request?
Upvotes: 1
Views: 298
Reputation: 119021
A PFFile
reference isn't the same as a pointer, it's an explicit reference to the file. A pointer is a reference to an object in the Parse data store (a reference to the object id). includeKey
can only be used to get additional objects in the response, not raw file data.
After you get your Person
you will then need to get the PFFile
and then make a request to get the file data (using one of the methods like getDataInBackgroundWithBlock:
).
Upvotes: 1