ios - How to get PFFile from disk? -
i want pffile disk. learned here parse caches pffiles downloaded. wondering how retrieve cache. right path. path utilize suggested here
nsstring *path = [nssearchpathfordirectoriesindomains(nslibrarydirectory, nsuserdomainmask, yes)[0] stringbyappendingformat:@"/caches/parse/pffilecache/%@", pffile.name];
nsdata *data = [[nsfilemanager defaultmanager] contentsatpath:path];
data nil.
am using right path? /caches/parse/pffilecache/
from description of problem should utilize different process. utilize pffile
interface initially, store url
s files case need access file info later. in way have direct link file info , can utilize normal connection or session download.
if don't need pffile
download using rest interface may more suitable you.
another alternative create same request returned file info you, instructing api utilize cached info only. done setting cachepolicy
cache_only
on pfquery
.
ios caching parse.com pffile
No comments:
Post a Comment