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

  • Home
  • SEARCH
  • 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 6988337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:04:03+00:00 2026-05-27T19:04:03+00:00

My web application allows end users to upload image. After the image is saved

  • 0

My web application allows end users to upload image. After the image is saved to server, the image will then be viewable at my web site. To make the webapp easier to scale, I decide to store the uploaded image into different folder based on current time, like:

/images/upload/2011/11/30/image1.jpg 
/images/upload/2011/11/30/image2.jpg 
/images/upload/2011/12/29/image1.jpg
/images/upload/2011/12/29/image2.jpg

This is ok. However the image URL for end user will also include information like:

http://www.mywebapp.com/images/upload/2011/11/30/image1.jpg

which is not desireable. I am wondering whether it is possible to produce the digest for “2011/11/30/image1.jpg” as something like “8faa6933ac54cd2ae5eb575d2d966a42.jpg”, save the mapping somewhere, and then serve end user with:

http://www.mywebapp.com/images/8faa6933ac54cd2ae5eb575d2d966a42.jpg

When the request for the image comes in, we look up the real image from the previously saved mapping, and serve the real image.

Is it possible to achieve the above? Or it is not relevant at all. I am using spring mvc for my application.

Thank you for your time,
George

  • 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-27T19:04:04+00:00Added an answer on May 27, 2026 at 7:04 pm

    You could write a servlet that catches those urls and pass the image to the user as a byte-stream.

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

Sidebar

Related Questions

I have a ASP.NET web application that allows end users to upload a file.
I am working on a web application that allows users to upload attachments. These
Let say, I have a web application that allows users to upload images and
I want to allow the end-users of my web application to modify views (via
I want to create a web application that allows users to sign up, register
I have a web application where I would like to allow end users to
I have a web application that allows a user to search on some criteria,
I have a bowling web application that allows pretty detailed frame-by-frame information entry. One
I am writing a web application that allows a user to get an employee's
I'm running a web application that allows a user to log in. The user

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.