x
login register about faq

Fetch Image from the server and display on jsp via servlet

I know this question has been asked many times, but my requirement is bit odd and i am unable to implement with the approach given here

http://balusc.blogspot.com/2007/04/imageservlet.html

I need to display user(say user: "A") photo, when user "A" selects his profile from a drop down list of users in jsp. technologies being used are Spring, Hibernate, Jsp, Servlet, Ajax, Jquery

Requirement is as follows -

  • If a user A selects his/her profile from the drop down, it will open his/her profile page with a photograph of his/her.
  • If a user B selects his/her profile from the drop down, it will open his/her profile page with a photograph of his/her. and so on.

all the user photographs are located in a remote server drive with a unique id. the id's are being sent from jsp to servlet. Servlet takes the id and do the search on the the remote server directory where thousands of images are stored. (Images name are exactly the same as id)

1) how can we connect to the server drive and locate to the image directory in servlet? 2) optimal way to search the image against the given Unique id? ( if there are thousands of images are present in the folder)

Any help would be appreciated.. Thanks

more ▼

asked Sep 28 '11 at 01:54 PM

sjagdeesh38 gravatar image

sjagdeesh38
1 3 3 3

(comments are locked)
10|600 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x6
x5
x3
x1

asked: Sep 28 '11 at 01:54 PM

Seen: 612 times

Last Updated: Sep 28 '11 at 01:54 PM