-
Notifications
You must be signed in to change notification settings - Fork 56
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 image format not supported #18
Comments
Were you able to resolve this issue? I am having the same issue. I would appreciate if you could share your findings. |
I didnt look into it anymore until now, but after your request i tried again just now and indeed found a solution which seems to work for me. Instead of the 'content://...' path which i found suggested alot for android, using the path returned from Uri.file().toFilePath() works for me, tested on Android only. Edit: Maybe i was to hasty, sharing the image to WhatsApp seems to work, GMail however shows an error saying it could not attach the file, testing it with a file explorer shows no error and the saved file exists, but is empty with size zero bytes.
|
were you able to retrieve the file image and share it? |
No i couldnt get it to work using the file path. Im now using esys-flutter-share which supports text and image shares, and is using the image byte data directly instead of a path, which seems to solve the issue. |
Use this https://pub.dartlang.org/packages/share_extend .
Em ter, 26 de fev de 2019 20:10, lodemo <[email protected]> escreveu:
… No i couldnt get it to work using the file path.
Im now using esys-flutter-share
<https://github.com/esysberlin/esys-flutter-share> which supports text
and image shares, and is using the image byte data directly instead of a
path, which seems to solve the issue.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARGrJBF7zfzNqYMaaQLrNYj-Vsvyrv-kks5vRb7rgaJpZM4Z8RJX>
.
|
Hi,
im trying to share an image through Share.image(...) but for every app the share is opened, a message is shown that the format is not supported.
Im writing the file to the external directory beforehand, in PNG format.
WhatsApp, GMail etc. are all displaying the format is not supported but i cant image they dont support PNG.
Is there something wrong with my share or what could be the reason?
The text was updated successfully, but these errors were encountered: