Skip to content

Is there a limit to the length of a string when it is uploaded to the RTDB? #486

Answered by mobizt
ProyectoOVO asked this question in Q&A
Discussion options

You must be logged in to vote

Conversion large image data to base64 string in this low memory device is not efficient and may limited due to Heap fragmentation.

I recommend Blob and Files that already implemented in this library.

The BLOB and File will be converted to base64 encoded string on the fly when you store (upload) data to RTDB database and converted back from base64 string to BLOB and File when restore (download) data from RTDB database.

In your case, you can use send image data directly via Blob function or save it to file and send it later via File functions.

The base64 string stores in the RTDB database using Blob and File functions will be prepended with 12 bytes of blob signature blob,base64, and 12 byt…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mobizt
Comment options

You must be logged in to vote
4 replies
@ThaiLe-gt
Comment options

@mobizt
Comment options

@ThaiLe-gt
Comment options

@samgonzaga
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #486 on February 27, 2023 01:03.