craigmuirhead commented on issue #565:
URL: 
https://github.com/apache/cordova-plugin-file/issues/565#issuecomment-1706607952

   var arrayBuffer = await cordova.plugins.safMediastore
     .readFile(contentUri)
     
     **// find a function to convert to base64 online**
   var base64Result = _arrayBufferToBase64(arrayBuffer);
   
   var uploadFileName = await 
cordova.plugins.safMediastore.getFileName(contentUri)
   
    var params = new Object();
   params.data = base64Result;
   params.filename = fullFileName;
   
   var contentUri = await cordova.plugins.safMediastore
     .writeFile(params)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to