Hi.
The best is to keep it in a BLOB column in the db.
then the src="" of the image html elemt would be a servlet which its
reponse's content type is "image/gif"
and all it does is retreiving the byte[] of the image and writing it to the
response output stream.
Shahar.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Penn
Sent: Tuesday, April 17, 2001 3:31 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Where to keep the uploaded picture files.


Hi all,

May i know where to keep the uploaded picture files......
The uploaded file must be able to view/load by the browser via the
hyperlink.

problem....

To provide the hyperlink the file must be sit inside the web context
directory  jBoss/tmp/deploy/Default/MyWar/

this directory will be deleted and recreate when the jBoss restart......

if i put the files outside the web context dir, i  can't havre the
hyperlink.


any suggestion.....


tia

Penn


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to