question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Returning object with all props null when using base64

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Yinlujiacommented, Mar 18, 2019

I have find no solutions, what i do is to compress the image file and make the str more smaller.

0reactions
ertejaspatelcommented, Mar 18, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found