raphinesse commented on issue #364:
URL: 
https://github.com/apache/cordova-plugin-file/issues/364#issuecomment-944914020


   I filed a PR in cordova-js that tries to improve the performance for big 
files as much as is possible with the current architecture. However, I think 
the only solid solution to this problem is to not process big files in the 
browser's main thread.
   
   It seems the file-transfer-plugin caters well to the common use case of 
simply downloading and storing files. Chunked reading and writing seems to be a 
reasonable alternative if you really need to transfer a lot of bytes over the 
web/native bridge. However, I'm not quite sure if we should promote that by 
including it into this plugin.
   
   One thing that we should definitely consider for this plugin is the move 
from the synchronous `base64.fromArrayBuffer` to using 
`FileReader.readAsDataURL` to convert files to Base64 strings.
   
   @LightMind Thanks so much for your detailed analysis of the problem. You 
really pushed this issue forward!


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to