You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
})
The text was updated successfully, but these errors were encountered:
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!
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)
})
The text was updated successfully, but these errors were encountered: