Download an Object

This SDK method will allow you to download the object.

Parameters Used

Parameter NameData TypeDefinition
versionIdStringAn optional parameter. Will hold the unique version ID of the required object's version.
fromCacheBoolean
  • An optional parameter. To be used to specify whether this file has to be retrieved from the cache or not.
  • Default Value: false.
copy
bucketInstance.getObject("SunSet.jpeg", "2823000000044005", //Replace this with your Object Name and Object ID
    {
        object -> object.download(
        {
            println("File download success ${it.available()}")
        },
        {
            println("File download failed $it")
        }
   )
}

Last Updated 2026-11-03 20:49:21 +0530 IST