Encrypt the document and convert it to a string before pushing it to firebase! #619
Unanswered
thapliyal128
asked this question in
Q&A
Replies: 1 comment
-
Using the In addition, to allow raw document (string) or compressed document data upload via HTTP request is out of library scope. Anyway, I recommend using device with PSRAM in case of large JSON. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all , I was thinking if its possible to encrypt my FirebaseJson document into a string and then send the string to firebase ? Is it possible ?
My current document looks something like this
` String documentName = DEVICE_ID;
documentName.replace(" ", "%");
String documentPath = COLLECTION_PATH + documentName;
content.set("fields/devId/stringValue/", DEVICE_ID);
content.set("fields/macAdr/stringValue/", macAdr);
content.set("fields/battRem/doubleValue/", getBatteryPercentage());
content.set("fields/washRem/doubleValue/", getMouthwashPercentage());
content.set("fields/cupsRem/integerValue/", cupsRem);
content.set("fields/latlng/geoPointValue/latitude", 19.12783549046148);
content.set("fields/latlng/geoPointValue/longitude", 72.92849703970364);
content.set("fields/lstUpd/stringValue/", getLocalTime());
content.set("fields/weight/doubleValue/", weight);
`
And i am thinking of adding more fields to it ,
Because my document size is getting bigger and I have concerns for free size quota in firestore storage , therefore I want it to encrypt it in a string and then create a document with a single key value and push it ?
Beta Was this translation helpful? Give feedback.
All reactions