phonegap-base64
phonegap-base64 copied to clipboard
Returns empty
I'm getting an empty response too, in my case I'm trying with an image url:
The URL img is like: 'http://192.168.1.223/camera/snapshot=123123'
this.base64.encodeFile(url).then(
(base64File) => {
console.log(base64File); // this is empty
},
(err) => {
console.log(err);
});
Should I do it differently due is not a local file?
Returns empty for me too. For both .doc and .pdf files. Though it works perfectly for image files.
Same problem here, it doesn't find an image inside the 'assets' folder from my project or passing a link from the web ([https://78.media.tumblr.com/1d710c53dddcd114b42e4781fa1c52cf/tumblr_inline_mi3fpcf9fz1roozkr.png]).
let base64img = await this.base64.encodeFile('https://78.media.tumblr.com/1d710c53dddcd114b42e4781fa1c52cf/tumblr_inline_mi3fpcf9fz1roozkr.png');