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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:57:15+00:00 2026-06-14T03:57:15+00:00

I was wondering the best option to build a website that will allow an

  • 0

I was wondering the best option to build a website that will allow an user to send photos to be displayed on a open part of the site and I don’t know if I should build a database in mysql to receive those photos and then to this table to be pushed on the screen and it grows. Is there any other options? Like getting these photos on a folder and then make a system to get them as I’d do if programming normal html and css. To get these photos as a blob inside the table may be an opinion, but there might be some other way that might be interesting to know about. Thanks guys!

  • 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-14T03:57:16+00:00Added an answer on June 14, 2026 at 3:57 am

    First thing is you should never ever save photos into your database.
    Database should only hold information about images, where are they stored, whats their size etc…

    First solution:

    You can save uploaded photos in some folder on your server, and then when you want to show those photos, just read content of that folder to get information about uploaded photos and show them on your web. You can list content of a folder easily with PHP. And this way you have images location information and you can add them to your HTML easily. You can have one folder per user if you want to. And then you can fetch user from lets say session, and you know that his images are saved into /uploads/images/{user}/

    Second solution:

    Even better way would be to upload photos to your server folder, but when uploading photos you can save information about photos into database. So when you want to show photos just go through database table then has information about uploaded photos. You would save everything you need about photos in that table, like, photo_path, photo_size, photo_dimensions, photo_uploader, photo_category etc…

    This way you can easily cache those information and speed up your site if needed.

    The first solution is not good for high traffic sites since you would have to list all the folders/images on every page request, and this can be slow.

    Anyway, images should go into your server folder, and you would either use PHP functions to read that folder for information like how many images are in the folder, whats their size etc… you can do all that with PHP. Or even better, before you upload image to a folder, inspect every image and save that information into database. If you go with the first solution, you dont even need to use database, but this could bite you if your site grows and you want to improve performance.

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

Sidebar

Related Questions

Just wondering what is the best option for deploying an ASP.Net Website.At the moment
I'm new to Java. I'm wondering what will be the best option to store
I was wondering what the best option would be for doing ajax calls to
I was wondering if there is a way to extend build explorer that displays
I am wondering what is the best way to build a custom hash in
I'm wondering i export the certificate of a website will it get exported with
I am wondering what my best option is to delay the loading/playing of a
Just wondering the best way to replace in place matches on a string. value.replace(bob,
I'm wondering about best practice here. Is it good practice for a factory method
I was wondering the best way to upload file to a web server in

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.