Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

What js object should i use to store bytes in firestore using Admin / Web SDK? #2472

Unanswered
Vloz asked this question in Q&A
Discussion options

Already asked there without success

Js Blob and SDK Bytes return a serializing error.

Error: Value for argument "data" is not a valid Firestore document. Couldn't serialize object of type "Bytes" (found in field "binaryData"). Firestore doesn't support JavaScript objects with custom prototypes (i.e. objects that were created via the "new" operator).

Serializing works when i send it as Uint8Array but then it's displayed as a base64 string in firestore emulator..?
And when i try to retrieve it with Web SDK it return to me as byteString/binaryString object..?

What's the correct way to store bytes in firestore?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /