Downloads a file.
buckets
permissions: noneobjects
permissions: select
The full path and file name of the file to be downloaded. For example folder/image.png.
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,
),
);