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.

image is not converting to base64

See original GitHub issue

Hai, When i try to convert the image to base64 it is not showing the correct base64 format. Here is the line of code i used for base64 conversion let source = { uri: 'data:image/jpeg;base64,' + response.data } But it not showing correct base64 image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

2reactions
yasserzubaircommented, Jun 2, 2017

I solved the problem myself. You need to do let source = 'data:image/jpeg;base64,' + response.data instead of let source = { uri: 'data:image/jpeg;base64,' + response.data }

0reactions
stale[bot]commented, Jun 18, 2019

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nodejs image not converting to base64 correctly
So i'm reading a file, and saving the file into a variable. I then create a buffer using the variable and convert it...
Read more >
How to Convert the Image into a Base64 String Using JavaScript
Read this tutorial and learn several methods of converting an image to a Base64 string using JavaScript. Choose the right approach for you...
Read more >
Image to Base64 String Conversion - Baeldung
In this quick tutorial, we're going to cover how to encode image file to a Base64 String, then decode it to retrieve the...
Read more >
How to convert image to Base64 online - Base64.Guru
1. Choose the source of image from the “Datatype” field. 2. Paste the URL or select an image from your computer. 3. If...
Read more >
Converts Base64 String Into an Image - IP Location Lookup
Open the Base64 to Image Converter. · Enter a Base64 Encoded string. · Select the Image type. · After selecting the Image type,...
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