Retrieve list of thumbnails for an API call

Highlighted
First-time Contributor

Retrieve list of thumbnails for an API call

Hi,
I have webapplication and user will upload the images and those images are stored in the box. I am storing the fileId in my database. I do have more than 10K images in one folder. I will be displaying 10 to 20 images per page based on the user. I would like to send list of fileIds to box and get the all the thumbnail images based on the fileIds which i sent.

Currently i am using userClient.FilesManager.GetThumbnailAsync(fileId, maxWidth: 160, maxHeight: 160) method which is returns only one Thumbnail at a time. I wanted to get the list of thumbnails at one short, so that i do not want to interact box for each image.

Please let me know is there any API which returns list of thumbnail images based on the list of fileIds.

1 REPLY 1
Highlighted
Box Employee

Re: Retrieve list of thumbnails for an API call

Hi @kaselvan,

 

There isn't something that isn't more than a batching function to make the process more convenient, but that functionality is currently in an unsupported state and is flagged for deprecation, so I wouldn't use it.

 

I would suggest you just make the 10 requests in parallel to capture the thumbnails that you need.

 

- Jon