Comments (9)
You mean is that the issue in create-react-app?
I need to do as mentioned in #2 but no problem there are many other ways to convert from url to base64 like axios etc.
Thanks for your help :)
from image-to-base64.
Hi,
.png from 7 kb is working correctly, but the one from 12kb is not working and giving .statSync errors.
All the other sizes above at least 12kb are not working, and everything below max 7kb is working.
@razi0s Hi, how are you?
Can you share the error?
from image-to-base64.
from image-to-base64.
Can you share your code too?
from image-to-base64.
Sure!
const getBase64_custom=async (url)=>{
var base64=await imageToBase(url);
return base64
}
The above function will return base64 from image url
Here is the sample image url:
https://images.news18.com/ibnlive/uploads/2019/05/PM-Narendra-Modi-flashes-the-victory-sign.jpg
from image-to-base64.
cool, do you use lib on nodejs or react, angular, vanillajs?
from image-to-base64.
I am just using it in frontend (ReactJs)
https://www.npmjs.com/package/image-to-base64
from image-to-base64.
I am just using it in frontend (ReactJs)
this bug is know
from image-to-base64.
Can you try to repair it?
from image-to-base64.
Related Issues (20)
- Invalid base 64 string [Help Wanted] HOT 1
- one typo in README.md HOT 3
- is there way I can run it synchronously? HOT 5
- Error message not meaningful HOT 3
- Cors-Policy Error HOT 1
- Typescript support HOT 5
- how to solve ERR_UNESCAPED_CHARACTERS error? HOT 6
- Create a new release and publish on NPM HOT 1
- e.buffer is not a function HOT 9
- How to return the Base64 from object imageToBase64 HOT 1
- don't have time to take care of him, Can someone take care of it? HOT 3
- invalid regular expression in safari HOT 6
- Cannot find module 'fs' in 'image-to-base64' HOT 4
- CORS error when using imageToBase64 HOT 1
- Cannot find module 'fs' in 'image-to-base64' HOT 1
- Invalid regular expression: invalid group specifier name HOT 2
- Base64 image converter is not valid HOT 5
- CORS policy: No 'Access-Control-Allow-Origin' in react js HOT 1
- Blank Page in Safari : Create React APP project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-to-base64.