2

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

Shreyas Holla P
  • 145
  • 2
  • 14

1 Answers1

2

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.

mirekphd
  • 4,799
  • 3
  • 38
  • 59
Lex
  • 33
  • 1
  • 5