简体   繁体   中英

Can you pin parse files/ images to the local datastore?

If not what is a good way to cache images locally?

-- Note: I am coding for Android.

Picasso .

Many common pitfalls of image loading on Android are handled automatically by Picasso:

Handling ImageView recycling and download cancelation in an adapter.
Complex image transformations with minimal memory use.
Automatic memory and disk caching.

When you want to send the image to your cloud, you could use ParseFile in conjunction with Picasso , get the bytes from the image and save() or saveInBackground() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM