Skip to content
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

Cannot able to access URL type link. #14

Open
PrasannaBrabourame opened this issue Mar 18, 2019 · 1 comment
Open

Cannot able to access URL type link. #14

PrasannaBrabourame opened this issue Mar 18, 2019 · 1 comment

Comments

@PrasannaBrabourame
Copy link

Cannot able to access URL type link.
The below code show error
var base64Img = require('base64-img');
base64Img.base64('https://homepages.cae.wisc.edu/~ece533/images/airplane.png', function (err, data) {
if (err) {
console.log("error", err);
}
console.log(data)
})

@vanhocpham
Copy link

you can use function requestBase64(URL, callback)
ex:
var url = 'http://../demo.png';
base64Img.requestBase64(url, function(err, res, body) {
console.log(body)
});
hope can resolve your issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants