Skip to content
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

Disable save to camera roll and just return a data URI #50

Closed
awoodall opened this issue Jul 12, 2015 · 3 comments
Closed

Disable save to camera roll and just return a data URI #50

awoodall opened this issue Jul 12, 2015 · 3 comments

Comments

@awoodall
Copy link

For my project I use Firebase to store my images as Data URI's. It would be great to disable save to camera roll and just return a data URI string.

@developeron29
Copy link

+1

@Jimbo13M
Copy link

Hi,

I had the same needs for one of my projects.
I've made this little modification on the cordova plugin that stops saving on camera roll and returns the photo as a base64 jpg url.

BR

@DBZFYAM
Copy link

DBZFYAM commented May 19, 2016

@Jimbo13M, does your modification still work with the current version? I also need the base64 version of the photo but after replacing the file, I still get the same output from setOnPictureTakenHandler:

"assets-library://asset/asset.JPG?id=23569151-278F-469B-98B2-583A8BF839E5&ext=JPG", "assets-library://asset/asset.JPG?id=74749DFD-E078-4E35-976A-47C7DEE13920&ext=JPG"

Also, in your example, this line is used:
b64url.replace('file:///','')

However, the result I get starts with assets-library:// and isn't Base64 encoded. Help would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants