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 6765733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:44:48+00:00 2026-05-26T14:44:48+00:00

I am working with a MySQL Database and I need to store rich text

  • 0

I am working with a MySQL Database and I need to store rich text and images in HTML format. I need to store the images in Blobs due to convenience an organization and I was wondering if it is possible to store a small document made out of text and multiple images in a single Blob.

  • 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-26T14:44:49+00:00Added an answer on May 26, 2026 at 2:44 pm

    If you have some method of signifying where the breaks between files are, yes. You’d simply look up the location of the divisors and do a substring on the blob field to get the relevant chunk of data.

    But that’s a very poor design – DB fields should contain a SINGLE value only, even if it’s a binary blob. If you need to store multiple files, then use a child table and store each file in its own child record.

    Consider how painful it’d be to “delete” one of those files from the middle of the record. With a child table, it’s a simple matter of deleting the record. With the all-in-one field, you have to do an update with multiple substring extractions:

    UPDATE table SET blobfield=CONCAT(SUBSTR(blobfield, x, y), SUBSTR(blobfield, p, q))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to store map bounds in a MySQL database. I've spent some time
I'm working with a MySQL database that has some data imported from Excel .
I am working on a MySQL database that is huge (about 120 tables). I
I am working with a rather large mysql database (several million rows) with a
I'm currently working on a PHP application that uses a MySQL database for its
I'm working on a database with mysql 5.0 for an open source project it's
I'm working on a SaaS project and mysql is our main database. Our applications
An application I'm working on requires that I store certain values in a database
I am working on an application where i need to store an object of
I'm working on performance tuning my SQL Server 2008 database and am using 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.