Returning object with all props null when using base64
See original GitHub issueI do an insert into sqlite with a base64 image and when I try to do a SELECT to retrieve the data from the sqlite, it returns an empty object, with all my fields but all null.
If I execute an query like this SELECT description, creationDate FROM photos
it runs perfectly, but if I try to retrieve the base64 data, like this SELECT uri, description, creationDate FROM photos
, sqlite return me an object like this
{
uri: null,
description: null,
creationDate: null,
}
Sqlite is inserting the data, it looks like the problem is just when I try to retrieve, every time I do an insert, the length of my returned data is increased.
React Native SQLite Storage Version: 3.3.6: Operating System: Android
Thanks, the library is very useful and easy to use.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
A property of a Array of objects is NULL when before iteration ...
You can solve this by returning array of promises from the function convetTob64. I added an example below with your modified code.
Read more >JavaScript Problems — Image to Base64 String, Undefined vs ...
We can clone a Date object by using the Date constructor. For instance, we can write: const date = new Date(); const copiedDate...
Read more >Gatsby Image types not consistent with nullable graphql types
I am using the gatsby graphql schema to automatically generate types ... If Gatsby can possibly return null for the image query fluid...
Read more >WebView - Android Developers
android.app.appsearch.observer. Overview. Interfaces. ObserverCallback. Classes. DocumentChangeInfo · ObserverSpec · ObserverSpec.Builder · SchemaChangeInfo.
Read more >java.util.Base64.getDecoder java code examples - Tabnine
Best Java code snippets using java.util.Base64.getDecoder (Showing top 20 ... @return the decoded base64 of the cookie or {@code null} if the value...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have find no solutions, what i do is to compress the image file and make the str more smaller.
Did you find any solution to this issue? I am also having the same issue where I store large string but while reading it return null for all props in that object.
Any help would be greatly appreciated.
Thanks