RE: [JBoss-user] Where to keep the uploaded picture files.

2001-04-17 Thread Shahar Solomianik

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



RE: [JBoss-user] Where to keep the uploaded picture files.

2001-04-17 Thread Simphoukham, Southin

Try placing the pictures in a jar file.  Use the java.util.zip.* or
java.util.jar extenstion.  Create a zip or jar file and place it somewhere
in JBoss.  When you need it you can write an image servlet to read the
pictures and place it anywhere you want on your pages.  Vice-versa you can
delete files for the jar.
 
Southin

-Original Message-
From: Penn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 8:31 AM
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