On Parse.com, I have a class named ImagesEntry with a column named ImageFile that has images saved.
I have this code on android to read every row and return the images but it returns null.
ParseFile[] getImagesFromParseCloudDB() {
ParseQuery<ParseObject> query = new ParseQuery<ParseObject>(
"ImagesEntry");
query.orderByDescending("_created_at");
try {
ob = query.find(); // 'List<ParseObject> ob' initialzed above OnCreate
} catch (ParseException e) {
Log.e("Error", e.getMessage());
e.printStackTrace();
}
int i = 0;
for (ParseObject images : ob) {
// imagesFromDB is an array of type 'ParseFile'
imagesFromDB[i] = (ParseFile)images.getParseFile("ImageFile");
i++;
}
return imagesFromDB;
}
Any pointers on what wrong am I doing ?