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

Incorrectly base64 encoded when using Cloud Storage Emulator #553

Open
jpeiffer opened this issue Jun 23, 2023 · 0 comments
Open

Incorrectly base64 encoded when using Cloud Storage Emulator #553

jpeiffer opened this issue Jun 23, 2023 · 0 comments

Comments

@jpeiffer
Copy link

I'm not sure if the issue is with this package, with the Firebase Cloud Storage emulator, or a combination of the two, but it starts here so this is where I opted to create the issue.

When using the Cloud Storage Emulator combined with this package, uploading files results them being stored as base64 encoded, preceeded by a newline.

For example, uploading a text file containing:

Hello World!

... gets stored as:


SGVsbG8gV29ybGQh

This same problem does not happen if you upload the file via the emulator UI console and it also does not happen when using a live Cloud Storage project.

To help demonstrate the problem, I created a sample repo where the tests will pass in the live environment and clearly show the problem when using with the emulator.

https://github.com/jpeiffer/cloud_storage_issue

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