2017-07-24 215 views
0

我知道我應該使用任何插件。我目前使用一個名爲gif.js的庫,它允許我生成一個gif。將文件保存到文件夾

//this is result of create the gif 
url = blob:http://localhost:8100/c5b4bc73-e64d-4556-982a-537a7027a1e5; 

<Img src = 'blob:http://localhost:8100/c5b4bc73-e64d-4556-982a-537a7027a1e5'> 

我可以看到GIF沒有任何問題。

我打算將此gif保存在我的android設備上的某個文件夾中。我該怎麼做?

回答

0

使用文件傳輸插件

  const fileTransfer = new FileTransfer(); 

      fileTransfer.download(frompath, that.fsurl+topath, 
      (response) => { 
        resolve(response); 
       }, 
       (error) => { 
        reject(error); 
       } 
      ); 
相關問題