You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
Beta Was this translation helpful? Give feedback.
All reactions