Hi, i have a bug
onConvertImage: (Uint8List imageList) async{
try{
final DateFormat dateFormat = DateFormat('dd_MM_yyyy');
Directory generalDownloadDir = Directory('/storage/emulated/0/Download');
final dir = await getDownloadsDirectory();
log(generalDownloadDir.path);
await FileSaver.instance.saveFile(
name: '${dateFormat.format(DateTime.now())}_result_image',
ext: 'png',
mimeType: MimeType.png,
bytes: imageList,
filePath: generalDownloadDir.path
).then((value){
log(value);
});
}catch(e){
log(e.toString());
}
The value return : Something went wrong, please report the issue https://www.github.com/incrediblezayed/file_saver/issues
but no exception catched
I've tried other folders and it seems the same, i want to save file into cache folder.
I use the saveAs function and it works fine
I use in Android 11 platform
Hi, i have a bug onConvertImage: (Uint8List imageList) async{ try{ final DateFormat dateFormat = DateFormat('dd_MM_yyyy'); Directory generalDownloadDir = Directory('/storage/emulated/0/Download'); final dir = await getDownloadsDirectory(); log(generalDownloadDir.path); await FileSaver.instance.saveFile( name: '${dateFormat.format(DateTime.now())}_result_image', ext: 'png', mimeType: MimeType.png, bytes: imageList, filePath: generalDownloadDir.path ).then((value){ log(value); }); }catch(e){ log(e.toString()); }
The value return : Something went wrong, please report the issue https://www.github.com/incrediblezayed/file_saver/issues but no exception catched I've tried other folders and it seems the same, i want to save file into cache folder. I use the saveAs function and it works fine I use in Android 11 platform