Firestore Blob/bytes storage question

339 views
Skip to first unread message

dee...@gmail.com

unread,
Mar 1, 2023, 8:57:12 PM3/1/23
to Firebase Google Group
When I store a Uint8Array to Firestore using the the node.js admin sdk, the data appears as a base64 string in the Firestore explorer. The docs seem to imply that storing bytes (or a blob from the client sdks) is more efficient than simply storing base64 strings, but the explorer seems to indicate that it's just storing a base64 string. Can someone confirm that there is an advantage to storing bytes/blobs vs base64 strings.

I'm asking because I'm sharing code between my app and firebase functions, and I'd rather not have to deal with Blobs in the app, and Uint8Arrays in functions if there's no benefit over reading and writing base64 strings on both sides.

Thanks

Ray Sarno

unread,
Nov 1, 2023, 8:10:06 PM11/1/23
to Firebase Google Group
Upvote. I'm also trying to use the Bytes data type and interested in the answer to this.
Reply all
Reply to author
Forward
0 new messages