image is not converting to base64
See original GitHub issueHai,
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:
- Created 6 years ago
- Reactions:1
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved the problem myself. You need to do
let source = 'data:image/jpeg;base64,' + response.data
instead oflet source = { uri: 'data:image/jpeg;base64,' + response.data }
Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.