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

  • Home
  • SEARCH
  • 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 1026339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:04:03+00:00 2026-05-16T12:04:03+00:00

I have an sqlite table w/ 500 records each with images stored as blob

  • 0

I have an sqlite table w/ 500 records each with images stored as blob data. The images are all large size and I need to make thumbnail sized versions of each image and then save them in a separate field.

Does anyone know what would be the optimum way of approaching this task?

One other question – is it recommended to have a separate table to store the images?

thanks in advance

  • 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-05-16T12:04:04+00:00Added an answer on May 16, 2026 at 12:04 pm

    The easiest way is to first do a query to get all of the row keys to process, but no BLOB data. Then iterate over that list (not in SQL) and fetch the BLOB data from the particular row, generate the thumbnail by whatever means, and then write it back to the thumbnail column for the row. It may take some time, but at least you won’t have to worry about hitting memory limits or other such frustrating nonsense. It’s a good idea to do this when you can be sure that nothing else is using the DB so you can avoid having to worry about transactions, and once you’ve done it once, update your row insert/update code so that thumbnails are kept up to date during processing rather than as a separate batch step.

    As for whether the images should be in the DB, that’s a good one. The thumbnails quite possibly should be, but the image data itself could be fairly large (especially with more rows) so perhaps should live as separate files with only the filenames in the DB. You need to balance the ability to normally process the data faster (by not having all that image data in there) against the ability to keep all the data consistent (too easy to get into problems if something is poking around in the image data). I can’t really answer that for you as it requires deeper knowledge of the application – it’s your job – but I hope this tells you what you should be thinking about when making the decision.

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

Sidebar

Related Questions

I have an SQLite table that contains a BLOB I need to do a
In one SqLite table, I have a BLOB column for saving images (or binary
i have an sqlite table with 2000 records. I need to show this records
I have a very large CSV file that I imported into a sqlite table.
I need help with SQL. I have an sqlite table like so; CREATE TABLE
I have a listView with checkbox which populate from sqlite table. I need to
I have a simple question: How to drop all indexes of a sqlite table?
I have a sqlite table that has amount field with NUMERIC(10,5) value(I know data
I have Price column in my SQLite table (OrderTable). I want to add all
I have a database of 50MB size in SQLite 3. All db objects are

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.