What's the difference between having a picture directly on the MySQL database and the path and picture name of the saved picture?

Source: Internet
Author: User
What are the pros and cons of the two, how to implement the image upload, the path picture name into MySQL

Reply content:

What are the pros and cons of the two, how to implement the image upload, the path picture name into MySQL

There are two advantages to having the image stored directly on MySQL:

  1. It is easier to take weight, that is, the same picture only save one copy.
  2. The most important backup is to use a database backup in a simple way.
  3. Easy to manage, get rid of useless pictures and so on.

Disadvantages:

  1. Not suitable for ultra-large storage, the greater the storage of data, the more trouble to recover
  2. Of course, the front end is still required to do more physical caching, rather than relying on MySQL to directly output.

Haha, picture I just want to say, save to the cloud.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.