phonegap-base64 icon indicating copy to clipboard operation
phonegap-base64 copied to clipboard

Returns empty

Open Mochoa92 opened this issue 7 years ago • 3 comments

Mochoa92 avatar Jun 23 '17 22:06 Mochoa92

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?

julianCast avatar Sep 27 '17 12:09 julianCast

Returns empty for me too. For both .doc and .pdf files. Though it works perfectly for image files.

hyderlyger avatar Dec 11 '17 12:12 hyderlyger

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');

JeanPSF avatar Jul 31 '18 19:07 JeanPSF