question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sharing base64 image is not working anymore.

See original GitHub issue

Hello, I am developing on android. My react-native version is 0.42 I’m using this package for sharing screen view. The data I want to share is being converted to base64.

...
const uri = "data:image/png;base64,...";

                Share.open({
                    title: "Title",
                    message: "Message",
                    url: uri,
                    subject: "Mail subject"
                })
...

This process was working properly on whatsapp, facebook and email before. However, now, when I tried on whatsapp the response is ‘Sharing failed. Please try again’, on facebook I’m getting an empty text area without sharing options and on email I’m getting the text typed options except for the image.

Do you have any suggestion? Thank you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
piubellofelipecommented, Oct 27, 2017
let options = {
                url: `data:image/png;base64,` + base64Data,
                type: 'image/png',
                message: '',
                title: ''
            };
            Share.open(options).then(response => {
                ... 

is working for me, maybe the type field is important? did not try without it

0reactions
MateusAndradecommented, Jul 9, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sharing base64 image is not working anymore. #184 - GitHub
Hello, I am developing on android. My react-native version is 0.42 I'm using this package for sharing screen view. The data I want...
Read more >
Base64 Encoded Image Not Showing Up - Stack Overflow
I'm using a dataUrl and setting an image's src as the url but the image is not showing up when I do that....
Read more >
Image Base64 Encoding - KeyCDN Support
With Base64, this problem could be circumvented by using an already open HTTP connection to deliver images embedded directly in HTML or CSS....
Read more >
Embedding Images in Power BI using Base64 - SQLJason
1) Large images usually do not get displayed even if you paste the right base64 code. So make sure you are using small...
Read more >
Fix problems that cause images to not show | Firefox Help
If you are experiencing difficulty downloading or viewing images in Firefox, follow the troubleshooting instructions in this article.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found