breautek commented on issue #225: URL: https://github.com/apache/cordova-plugin-media-capture/issues/225#issuecomment-2064098848
No, and for audio and video you'll almost certainly cause the process of OoM (Out of Memory) using Base64 encoded data urls. The camera plugin does offer base64 support for images only, so if you only need it for images, that could be a workaround. Modern devices can produce really large resolutions however and it's known to cause the process to OOM. Even if it doesn't using base64 data urls is incredibly inefficient and will be very slow since strings are passed by value in JS, not by reference. Which means your binary data is copied for everytime you pass it off to another function, and copied several times while it crosses the cordova bridge. -- 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