'Downloading Image from URL - from AWS S3 on flutter and saving it to the gallery FLUTTER
So prior to switching to AWS S3. I was using Gallery saver (https://pub.dev/packages/gallery_saver)
I switched to hosting media files on AWS S3 (with django as my back end) and was trying to download an image. I pass in the URL(signed URL) that points to the media file in my aws s3 bucket and now its not downloading the image and saving it to the gallery.
this is what I was using before, no code has changed:
await GallerySaver.saveImage(url);
is there any other way to save images from a url link to an AWS S3 object to your gallery in flutter. Am I doing something wrong?
The image it self loads perfectly in flutter using CachedNetworkImage so I know the URL works and when I click the url in the browser, I'm able to access/download the image.
I realized the error is : OS Error: File name too long, errno = 36) so long URL is causing this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|