Download an Object

This SDK method will allow you to download the object.

Parameters Used

Parameter Name Data Type Definition
versionId String An optional parameter. Will hold the unique version ID of the required object's version.
fromCache Boolean
  • 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 2025-07-08 19:37:39 +0530 +0530