Stefun
(Stefun)
July 26, 2020, 8:26pm
1
Hello everyone !
I’d like to know how to insert an image to my SQLite table (i’m using Taifun SQLite extension).
I’ve read that I need to use the BLOB typeto save image to DB but I wonder how to convert my image to a such type
I also need to read the image from the DB.
Can someone give me some help please?
EDIT: ok it seems that to do what I want, I have only 2 solutions :
use Cloudinary or Firebase online database to upload images (but need to be online)
store image on device and only save path to database (better solution for me because I want an offline app).
I am right ?
Yes you can do so,
If you are storing the file path in database rather you can store the file path in tinydb, so your app becomes offline
Stefun
(Stefun)
July 27, 2020, 9:26am
3
Hello @Soham_Shah
As I will use an SQLite DB, I will store them into it
themaayur
(Mayur Berad)
July 27, 2020, 9:28am
4
Stefun:
I want an offline app
Stefun:
save path to database
If you want a offline app then to set/get data from database it will need internet connection.
Stefun
(Stefun)
July 27, 2020, 9:53am
5
???
My .sqlite db is embeded on my device
Why sould I be online to connect to a local database ?
Rogerio_Rios
(Professional Support)
July 27, 2020, 10:01am
6
You don’t need internet …
Stefun
(Stefun)
July 27, 2020, 10:03am
7
First good news of the day, thanks @Rogerio_Rios
themaayur
(Mayur Berad)
July 27, 2020, 10:05am
8
Actually I don’t know about that
You should mark your first post as solution @stefun as you had only cleared your doubt in the first post
themaayur
(Mayur Berad)
July 27, 2020, 10:18am
10
You can’t mark first post as solution
¿How do you store an image into SQLite? I need to resolve the same problem.
Thanks!
Rogerio_Rios
(Professional Support)
September 1, 2020, 4:11pm
12
Did you try to save your image path in the bank?
Not yet, but I thougth we can save an image into SQLite as blob.
Rogerio_Rios
(Professional Support)
September 1, 2020, 4:28pm
15
Did You searched ? What are you failing to do?
I´m searching and i´ve found it
But I don´t find the how to…
Stefun
(Stefun)
September 3, 2020, 3:22pm
17
Hello @Proyecto_Freelance , if you find some stuff, please share. I’m still wondering hot to store image in SQLite !
1 Like