简体   繁体   中英

How can I download pictures from RESTful server on a client?

I have a big problem on the download from a RESTful server on an Android client. I have a lot of pictures loaded with the Android client and now I would download these with the same client... I would insert the pictures downloaded inside an image view like a gallery but the problem is: how can I download thie pictures and show in my image view... Json? File transfer? Others? I have read a lot of articles and posts but I haven't got any idea on how to solve my problem... Any suggestion are welcome. Thanks

EDIT: A solution by coding is required because it is an exercise and I would learn the most by using a code

you can us a library to download de image and insert in ImageView. These libraries are the best known

Glide https://github.com/bumptech/glide

Picasso http://square.github.io/picasso/

I prefer Glide :)

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