Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share from file path #36

Open
Elf80lvl opened this issue Jan 31, 2022 · 0 comments
Open

Share from file path #36

Elf80lvl opened this issue Jan 31, 2022 · 0 comments

Comments

@Elf80lvl
Copy link

Can I share an image which is stored as file with a path? When I try to do so I get an error:
Unable to load asset: /data/user/0/com.example.qr_code_scanner/cache/image.png

final ByteData bytes = await rootBundle.load(file.path); await WcFlutterShare.share( sharePopupTitle: 'share', fileName: 'share.png', mimeType: 'image/png', bytesOfFile: bytes.buffer.asUint8List());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant