Open tiltmaster opened 4 years ago
i have same issue on specific phones (Galaxy A9 pro, but not Galaxy note8 and Galaxy A90)
The same situation
hm still no support on this one.
Same problem!
Same here.
same issues
I have the same problem. Does anyone have a solution?
Portanto, consegui baixar uma imagem de um URL e armazená-la no dispositivo. O problema que estou enfrentando é que ele também baixa um arquivo com o mesmo nome da imagem baixada, mas sem o tipo de arquivo.
Por exemplo, o download de Image.jpg também fará o download de um arquivo denominado Image, e é visível dentro do dispositivo.
saveImage(Message message) async { String url = message.photoURL; try { var imageId = await ImageDownloader.downloadImage( url, destination: AndroidDestinationType.custom(directory: 'dir'), ); if (imageId == null) { return; } setState(() { SnackBar snackBar = SnackBar( content: Text('Image Saved!'), ); _scaffoldKey.currentState.showSnackBar(snackBar); Timer(Duration(seconds: 2), () {}); }); if (imageId == null) { return; } } on PlatformException catch (error) { print(error); } }
solution?
same problem!!
me too..
Same with pixel 3a / android 12 Image is in both Pictures and Download
var imageId = await ImageDownloader.downloadImage(
imgUrl,
destination: AndroidDestinationType.directoryPictures
);
update?
So, I have been successful in downloading an image from a URL and storing it in the device, The issue that I am facing is that it also downloads a file with the same name as the downloaded image, but without file type.
Example, downloading Image.jpg will also download a file named Image, and it is visible within the device.