Skip to main content

DownloadFileFromStorage

No overview available.

def DownloadFileFromStorage(
ctx: context.Context,
ref: storage.DataReference,
store: *storage.DataStore
) - > io.ReadCloser

Downloads a file from the specified storage by reading its content. This function is used to retrieve the raw data of a blob stored in the system.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, allowing for cancellation and timeouts.
refstorage.DataReferenceThe reference to the data blob in storage that needs to be downloaded.
store*storage.DataStoreThe data store instance from which the file will be downloaded.

Returns

TypeDescription
io.ReadCloserA reader for the file's content, or an error if the file does not exist or cannot be read.