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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?