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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:20:32+00:00 2026-06-03T23:20:32+00:00

Please Try to Understand my curiosity Suppose there is a web application that has

  • 0

Please Try to Understand my curiosity

Suppose there is a web application that has mannny users. Each user can upload hundreds
of images and after logged in to his/her account can see those images according to his
will.

E.g – The social networking sites like Facebook.

So what my Question is

  1. How do they store so many images in their servers ?
    • in database as BLOB data ? OR
    • in dedicated folders in server for each user ?
  2. If I choose to use database then
    • Should I retrieve the images from database, copy them into a temporary folder in server and
      get the images through <img src=’/serverpath/image ‘> tag for each session ?

So How do they store and retrieve ?
Now in my application there are user details(without photos) and whenever I click on “view image”
link the photo should appear without page refresh. How can I achieve this using Java as per my above concerns regarding storage and retrieval ?

  • 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-03T23:20:34+00:00Added an answer on June 3, 2026 at 11:20 pm

    Save image in a folder, rename image to add some user specified id ect. to picture, so you cant have two picture with same id. Then save path in to database.

    I would suggest to use something like ImageMagick to do the image saving to folder. It can change the name of image and if you want you can change it format and size.

    When you want to show pictures to user just get that path from a database, wich have that specified user id to show pictures wich belongs to user.

    Saving images directly to database is not good choice if you really have millions pictures like facebook have.

    And I dont think you can do that image appearing with java, I suggest using javascript and ajax for it. Check this page for help, http://www.w3schools.com/ajax/ajax_example.asp

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

Sidebar

Related Questions

Can any professional please specify some real world application, where he / she has
First, I can't speak ENGLISH very well.. please understand :) When I try to
Can someone please try and explain this code for me, I don't really understand
Can someone please help me understand why the static analyzer says there is a
I will try to be specific if I can - please be patient, first
I get Segmentation Fault when I try to run my program. Can someone please
I've recently developed a web user control that lists a series of reports. When
Could you please suggest how to deal with these situations ? I understand that
I understand that there is no complete support for USB for Java in Windows.
please try this link for getting my code. its working in all browsers not

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.