Please kindly advise that you can store images on your website!

Source: Internet
Author: User
Please advise, storage of images on the website !!! May I ask, users can upload images to the server on the website !!! Which of the following methods is better? Method 1: save the image to the hard disk, store it in a certain rule, and name it. Then, use the absolute path to find it !! Method 2: save the image to the database in binary format !!! Which one is better ?, There are a lot of images uploaded by users. Generally, you don't need to worry about the storage of images on your website !!!
May I ask, users can upload images to the server on the website !!! Which of the following methods is better?

Method 1: save the image to the hard disk, store it in a certain rule, and name it. Then, use the absolute path to find it !!
Method 2: save the image to the database in binary format !!!

Which one is better?

------ Solution --------------------
Users upload images, that is, a lot of data. Generally, they do not consider writing data to the database and directly use the hard disk.
------ Solution --------------------
Generally, the first type is used.
------ Solution --------------------
Or the first kind of convenience.

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.