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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:53:29+00:00 2026-05-27T00:53:29+00:00

I want to create an image upload for users to upload a profile picture

  • 0

I want to create an image upload for users to upload a profile picture and be able to resize it. However, I was wondering how should I do the database table. I think I should have a field for user id, and image name, but then there would obviously be collisions which led me thinking about hash tables which seems like a overkill, so I thought I’ll ask here hoping someone who is more knowledgable could give me some ideas.

I am using Zend Framework, for your information.

  • 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-27T00:53:30+00:00Added an answer on May 27, 2026 at 12:53 am

    This is may not be an exact answer for your question. However, it can be an advice.

    If you want to keep the images or files in database, you have to maintain many things. There are a lot of discussion which you can search in google by “images in database or folders”

    I would recommend you to keep the images in folders instead of in database. So, in your database you just have to keep only ‘path’ to images as a column.

    In other words, your USERS table can have a column as:

    profile_image_path varchar2(200)
    

    instead of keeping the whole image as

     profile_image blob
    

    The advantages for this solution are:

    • you can let Apache handle images as statistic content (it could be considered as dynamic content if you keep in database).
    • You do not have to headache how to render image in database, just render as a path and that’s it!.
    • you can forget about maintain big data in database (just think about backup, import, export, and etc of 10,000 images in database)
    • etc

    The disadvantages for this solution are:

    • You have to maintain backup separately from database. However this is not more work since you have to backup you php, files and etc anyways.

    You can read more detail in google.

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

Sidebar

Related Questions

I want to create user profile with image. That user can upload his photo,
I want users to be able to upload an image and have it be
The script I have below is for users to upload a profile picture to
I want to create a function that after an image upload, will allow a
My web application creates multiple image thumbnail files when users upload images. I want
I want to create an application where I want to upload image from the
I want to create a django app that can upload and display images. However
I want to create a servlet that will allow me to upload image files
I want to create a preview image before the actual form upload. I have
I store path of profile picture of my users in database and images 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.