Downloads a file.
buckets permissions: noneobjects permissions: selectThe full path and file name of the file to be downloaded. For example folder/image.png.
Adds a `cacheNonce` query parameter to bypass CDN caching for a specific file version.
Transform the asset before serving it to the client.
final Uint8List file = await supabase
.storage
.from('avatars')
.download('avatar1.png');
final Uint8List file = await supabase
.storage
.from('avatars')
.download(
'avatar1.png',
transform: TransformOptions(
width: 200,
height: 200,
),
);
final Uint8List file = await supabase
.storage
.from('avatars')
.download(
'avatar1.png',
cacheNonce: 'v2',
);