Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to download/get multiple objects from MinIO using a single call?

Tags:

minio

How can I download download/get multiple objects from MinIO using a single call of MinIO Java SDK.

like image 763
Shreyas Holla P Avatar asked Sep 02 '25 08:09

Shreyas Holla P


1 Answers

In this case it is not possible to achieve this using a single call.

You'll need to perform the following steps:

  • list all the files in the selected bucket using the listObjects call,

  • filter the objects to check if the file/files that you want are included in the bucket,

  • use the getObject call to get the information of the file (from the available files list),

  • using data stream create a zip file with all the files that you require,

  • start the download.

like image 90
Lex Avatar answered Sep 05 '25 00:09

Lex