New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Image outputed as a Data URI? #11
Comments
I'd like a similar feature because I need to send the base64 through a webservice |
I thought it could be a good idea to use cordova-plugin-file plugin to read file and get base64 |
Yes, you should use the cordova-file in order to read the picture file and them get the base64. readAsDataURL: Read file and return data as a base64-encoded data URL. |
Would you be able to add an example of using the file documentation please? (or point to a more recent version). I am trying to use the described example but can't work out how to load the file path in the filereader |
In case anyone is having issues figuring out how to load the image as base64 Place this code inside of the setOnPictureTakenHandler callback and make sure the file plugin is installed https://github.com/apache/cordova-plugin-file
|
@rphansen91 Your code didn't work to me, reader.onloadend never trigger.
|
Would you be able to add a Data URI output option? This plugin works perfectly for my project but I'm needing to save the photos as a data uri, could this be a possible feature that can be implemented?
Thanks for this awesome plugin none the less!
The text was updated successfully, but these errors were encountered: