Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7714399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:07:03+00:00 2026-06-01T02:07:03+00:00

This is how i creted my Database using sqlite Pro:~ dd$ sqlite3 db.db SQLite

  • 0

This is how i creted my Database using sqlite

Pro:~ dd$ sqlite3 db.db
SQLite version 3.7.7 2011-06-25 16:35:41
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table cus(id integer primary key, firstname varchar(30));
sqlite> inser into cus(firstname)values('f');
Error: near "inser": syntax error
sqlite> insert into cus(firstname)values('f');
sqlite> select * from cus;
1|f
sqlite> 

Now i need to insert Images, i read that we could save images as BLOB files, Can someone show me how to save an image to a database file and retrieve the image and display in imageview ? A tutorial or sample code

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T02:07:04+00:00Added an answer on June 1, 2026 at 2:07 am

    You’re better off storing paths or relative paths to the files on disk in the database. The filesystem is optimized for loading and storing blob data while a database is optimized for relational data to query on and store transactionally.

    It allows you to keep your database small and light while you control the memory footprint of the images (and what you choose to cache and how).

    Related posts:

    Android sqlite / BLOB perfomance issue

    http://groups.google.com/group/alt.comp.lang.borland-delphi/browse_thread/thread/fdc16d03b613a00e

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using an sqlite database in my app. I have this dbhelper class in
I have made this code to open a database(created in SQLite browser) stored in
I'm using SQLite as my database, and I'm a little bit confused about how
I am using SQLite in a Java application through Zentus . In this context
I'm using a SQLite database to store information on players and their teams using
I am using a SQLite database to store values from a data logger. The
i am creating an app that needs a database. i created it using sqlite
I'm having trouble querying my SQLite database using Android. I keep getting either an
I'm using a sqlite3 database set up as follows in settings.py : DATABASES =
I want to save an image to the database using SQLite. I send the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.