I've gone through example here for single file upload and download. https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/UploadObjectExample.java However, I'm not finding any java OCI API for bulk upload/download of multiple files. I know this is possible if we use OCI CLI, but the requirement here is using Java APIs. Any suggestions would help.
Asked
Active
Viewed 1,228 times
1 Answers
1
There is no built-in OCI API for bulk uploading/downloading files. You would need to do something similar to the example you linked to above, in a loop, for all the files you need to upload/download.

Joe
- 2,500
- 1
- 14
- 12
-
Thanks @Joe, I'm zipping all the files and uploading it as of now, IO operations in loop would be a performance overhead. – Sourabh May 20 '20 at 12:42
-
"IO operations in loop would be a performance overhead" -- ok, but this is also how the OCI CLI does what you are asking for support for. So doing these operations in a loop as I described would give you parity with the feature and its performance of this in the CLI – Joe May 20 '20 at 21:36
-
Ahh...I dint know OCI CLI internally works in a loop for Bulk -uploads. Thanks @Joe, I'll re-evaluate our strategy of uploads/downloads. – Sourabh May 21 '20 at 07:02