Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

upload images from jsp

Thread view: 
chandu - 06 Jul 2006 15:08 GMT
in my project administrator will upload images into data base.when user
enters vth his id.the jsp file wil retrieve images and display.how can
i achieve this .whethere i need to store location of image or something
else.please help me in this regard
Oliver Wong - 06 Jul 2006 16:18 GMT
> in my project administrator will upload images into data base.when user
> enters vth his id.the jsp file wil retrieve images and display.how can
> i achieve this .whethere i need to store location of image or something
> else.please help me in this regard

   You can either:

   (1) store the bytes of the image itself in the DB.
   (2) store it somewhere in the filesystem, and store its location in the
DB.

   To give the image to the user:

   (1) Have the HTTP server respond to the URL request by connecting to the
DB and returning the bytes of the image, instead of HTML data.
   (2a) Link directly to the file on the file system if the file is in a
location that is shareable.
   (2b) Have the HTTP server respond to the URL request by reading from the
file and returning the bytes of the image, instead of HTML data.

   - Oliver


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.