Comments (4)
@AkramChauhan you can try image_pickers 1.0.5+3
from image_gallery_saver.
This plugin works like charm for Network images/videos.
I managed to display local images in the gallery which was created by my flutter app.
I am not sure, how to display video in a gallery from local storage.Here is my code for saving an image from the temp folder and display in the gallery.
Uri myUri = Uri.parse(widget.imgPath); File originalImageFile = new File.fromUri(myUri); Uint8List bytes; await originalImageFile.readAsBytes().then((value) { bytes = Uint8List.fromList(value); print('reading of bytes is completed'); }).catchError((onError) { print('Exception Error while reading audio from path:' + onError.toString()); }); final result = await ImageGallerySaver.saveImage(Uint8List.fromList(bytes)); print(result);
Here is what I am doing for saving temp video to a specific directory.
File originalVideoFile = File(widget.videoFile); Directory directory = await getExternalStorageDirectory(); if(!Directory("${directory.path}/Downloaded Status/Videos").existsSync()){ Directory("${directory.path}/Downloaded Status/Videos").createSync(recursive: true); } String path = directory.path; String curDate = DateTime.now().toString(); String newFileName = "$path/Downloaded Status/Videos/VIDEO-$curDate.mp4"; print(newFileName); await originalVideoFile.copy(newFileName);
but this video is not visible in Gallary.
I need some help to display this video in the gallery.
-Thanks.
any more details? phone and OS info?
from image_gallery_saver.
image_pickers @hyjfine
from image_gallery_saver.
ok
from image_gallery_saver.
Related Issues (20)
- MissingPluginException(No implementation found for method saveImageToGallery on channel image_gallery_saver) HOT 4
- Running example on android device leads to an error
- Solutions about desktop?
- Error: 'Uint8List' isn't a type
- saveImage() changes the image size
- No such file or directory
- App not compiling with kotlin_version 1.8.21 HOT 2
- Add iOS privacy manifests HOT 4
- 是否有添加鸿蒙平台的打算
- vdhhdhdd HOT 2
- gmer555er
- B
- ios 最新版本 saveVideo 本地 文件报错
- Gradle version with vulnerabilities HOT 1
- not worked in android version 9 (image not saved in gallery)
- Execution failed for PlatformAttrTransform: Android/sdk/platforms/android-30/android.jar
- Namespace not specified HOT 2
- Privacy manifest files support HOT 1
- Execution failed for task ':image_gallery_saver:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). HOT 2
- The image or video saved in the album after downloading failed to be delivered across the air
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image_gallery_saver.