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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, allowing for cancellation and timeouts. |
| ref | storage.DataReference | The reference to the data blob in storage that needs to be downloaded. |
| store | *storage.DataStore | The data store instance from which the file will be downloaded. |
Returns
| Type | Description |
|---|---|
io.ReadCloser | A reader for the file's content, or an error if the file does not exist or cannot be read. |