Hi,
Is it possible for a function (or webhook?) to return a file ? I want to return user profile image only from an id of a user ?
If it's small, you can try to base64 encode it
Otherwise, you may need to make profile images public
And if it is public, how can I achieve this ?
if it's public, you can use the storage api to fetch it 🧐
assuming you're storing it in appwrite...
But If I don't have the url of the image ? link of the profile picture is in the collection of my user, so I need to fetch first user collection, get the link and then get image from storage
i would store the images in a profile images bucket where the ID matches the user ID. then you can easily get the file with the user id
hum ok, I see, good idea 👌
Recommended threads
- After assigning a domain to my Dart func...
I’ve attached the images. Could anyone please explain how this execution is being performed?
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- Error trying to deploy functions from CL...
✗ Error • on-auth-create (6a00b2ab000c9ce2949b) • Server Error ✗ Error: No functions were pushed. Prject ID: 69ffe0270033a4ac420a