I'm a bit stuck on this. How I could display an image stored in an Appwrite bucket?
The easiest method I've found is by getting it by passing file ID in the URL, but that is not compatible with authentication. Not sure if it's possible sending headers in this case to send the user token.
Display image in a Flutter app
π€ seems it's possible this way: https://stackoverflow.com/questions/73770036/caching-images-thumbnails-in-listview
Seems not to work
HttpException: Invalid statusCode: 404, uri = http://192.168.1.124/v1/storage/buckets/MainImage/files/fileID/preview?project=6495854a0bc2caf27a72
When printing token, what it gives me is "instace of JWT"
Was not getting Jwt correctly π΅βπ«
Solved. Now it works correctly thanks to Steven solution
[SOLVED] Display image in a Flutter app
Recommended threads
- Appwrite (Dart SDK) (for package_info_pl...
Hi team! Many Flutter plugins now need package_info_plus 10.x and device_info_plus 13.x, but appwrite 25.4.0 still constrains package_info_plus: >=8.0.2 <10.0...
- Images/Videos in storage appearing broke...
I am running into a storage issue after upgrading my self-hosted Appwrite instance , all of my previously uploaded images and videos are now showing as broken i...
- `project_id_missing` in Cloud Function w...
I've got a cloud function written in `Dart-3.12` that I'm trying to create a file in a file bucket. I'm using the latest `dart_appwrite` sdk (`26.1.0`) and App...