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

Encode base64 via atob or btoa method #48

Closed
cristianghita24 opened this issue Mar 31, 2021 · 0 comments
Closed

Encode base64 via atob or btoa method #48

cristianghita24 opened this issue Mar 31, 2021 · 0 comments

Comments

@cristianghita24
Copy link

Is your feature request related to a problem? Please describe.
If a base64 encoded image using react-image-file-sizer gets sent a REST API then tried to be saved to Firebase Storage then Firebase will throw as it uses atob to decode. This issue is better described here

Describe the solution you'd like
An optional parameter to the api that specifies the encode method (i.e. atob)

Describe alternatives you've considered
I've tried using alternatives but it would mean using multiple apis as I need file conversion and resizing as well.

Additional context
Please check the stackoverflow link mentioned above.

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

1 participant