android - How to store multiple ParseFile objects in single ParseObject -
my question similar post "storing multiple parsefile objects in single parseobject", can't resolve on own
parseobject pobject = new parseobject(); arraylist<parsefile> pfilelist = new arraylist<parsefile>(); (string thumbpath : thumblist) { byte[] imgdata = convertfiletobytearray(thumbpath); parsefile pfile = new parsefile("mediafiles",imgdata); pfilelist.add(pfile); } pobject.addall("mediafiles", pfilelist); pobject.saveeventually();
and hector ramos answered question:try uploading parsefiles using save method before associating them parse object.
can tell me how change piece of code? appreciate kindly help.
Comments
Post a Comment