# Parse Image Retrieval

**URL:** <https://community.parseplatform.org/t/parse-image-retrieval/1464>\
**Category:** Android SDK\
**Tags:** files, images\
**Created:** [March 17, 2021, 4:49pm UTC](https://community.parseplatform.org/t/parse-image-retrieval/1464 "2021-03-17T16:49:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahm](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sahm](https://community.parseplatform.org/u/sahm)\
**Post date:** [March 17, 2021, 4:49pm UTC](https://community.parseplatform.org/t/parse-image-retrieval/1464/1 "2021-03-17T16:49:53Z")

</div>

Hi,

Anyone has a working code using the latest APIs to retrieve images and display them using an Array List and RecyclerView. I am able to upload the images and can retrieve one at a time but not all in an array and then display them using the Recycler view.

Any help much appreciated.

Regards

---

<div class="post-metadata">

**Author:** ![davimacedo](https://community.parseplatform.org/user_avatar/community.parseplatform.org/davimacedo/32/316_2.png) [@davimacedo](https://community.parseplatform.org/u/davimacedo)\
**Post date:** [March 17, 2021, 5:27pm UTC](https://community.parseplatform.org/t/parse-image-retrieval/1464/2 "2021-03-17T17:27:23Z")

</div>

Would you mind to share what you’ve tried so far? Maybe it will be easier for someone to help.

---

<div class="post-metadata">

**Author:** ![sahm](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sahm](https://community.parseplatform.org/u/sahm)\
**Post date:** [March 18, 2021, 10:42am UTC](https://community.parseplatform.org/t/parse-image-retrieval/1464/3 "2021-03-18T10:42:21Z")

</div>

Here is the code. The class is called ImageUpload and inside there is the image with its description and Username. How can put ImageFile+Description+Username in Array called allPostsList.

```
    ParseQuery<ParseObject> query = new ParseQuery("ImageUpload");

    //Sort query by Ascending order as per created date
    query.orderByAscending("createdAt");

    query.findInBackground(new FindCallback<ParseObject>() {
        @Override
        public void done(List<ParseObject> objects, ParseException e) {

            if(objects.size() >0 && e == null){

                for(ParseObject object: objects){

                    ParseFile file = (ParseFile) object.get("ImageFile");

                    file.getDataInBackground(new GetDataCallback() {

                        @Override
                        public void done(byte[] data, ParseException e) {

                            if(e == null && data != null){

                                Bitmap bitmap = BitmapFactory.decodeByteArray(data,0,data.length);

                                //Post post = new Post();
                                //Post post = objects.get(bmpList, allPostsList);

                                //ImageView imageView = new ImageView(getContext());
                                //ArrayList<Bitmap> bitmapArray = new ArrayList<Bitmap>();

                                //postList.add(bitmap);
                                //bitmapArray.add(bitmap);
                                //imageView.setImageBitmap(bitmap);

                                //String currentUser = ParseUser.getCurrentUser().getUsername();
                           
                                //Post spost = new Post(currentUser);

                                bmpList.add(bitmap);

                                //allPostsList.add(objects);

                            }
```

---

<div class="post-metadata">

**Author:** ![uzaysan](https://community.parseplatform.org/user_avatar/community.parseplatform.org/uzaysan/32/59_2.png) [@uzaysan](https://community.parseplatform.org/u/uzaysan)\
**Post date:** [March 18, 2021, 6:08pm UTC](https://community.parseplatform.org/t/parse-image-retrieval/1464/4 "2021-03-18T18:08:45Z")

</div>

There is specialized image loading library for android. Its called Glide.

> **[bumptech/glide](https://github.com/bumptech/glide)**
>
> An image loading and caching library for Android focused on smooth scrolling
