Downloads a file from a private bucket. For public buckets, make a request to the URL returned from get_public_url
instead.
buckets
table permissions: noneobjects
table permissions: select
The full path and file name of the file to be downloaded. For example `folder/image.png`.
undefined
with open("./myfolder/avatar1.png", "wb+") as f:
response = supabase.storage.from_("avatars").download(
"folder/avatar1.png"
)
f.write(response)
with open("./myfolder/avatar1.png", "wb+") as f:
response = supabase.storage.from_("avatars").download(
"folder/avatar1.png",
\{"transform": \{"width": 100, "height": 100, "quality": 80\}\},
)
f.write(response)