and make sure it matches the
path for #1.
HTH,
Tim
-Original Message-
From: Andrea Salvi [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 8:31 AM
To: Tomcat Users List
Subject: Re: Commons fileUpload: write to disk permission problem
Hi Tim, and thanks for your answer. I did
Do not write data in the webapplication folder, this folder is supposed
to be overwritten when webapplication is redeployed and datas will be
lost. Instead choose a folder in system you dedicate to your
webapplication datas and store your avatars there.
Or best use a database :)
Andrea
Hi David and thanks for the quick reply. I'll try to use the database to
store the avatars but... I don't know how I can show those images in my JSP
pages :S Can you please tell me how to do that? Sorry for the noobie
question... :)
Andrea
2006/6/26, David Delbecq [EMAIL PROTECTED]:
Do not
or whatever is
appropriate, and then stream the bytes out of the blob from the DB.
Tim
-Original Message-
From: Andrea Salvi [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 4:48 AM
To: Tomcat Users List
Subject: Re: Commons fileUpload: write to disk permission problem
Hi David
PROTECTED]
Sent: Monday, June 26, 2006 4:48 AM
To: Tomcat Users List
Subject: Re: Commons fileUpload: write to disk permission problem
Hi David and thanks for the quick reply. I'll try to use the database to
store the avatars but... I don't know how I can show those images in my
JSP
pages :S Can
: Monday, June 26, 2006 8:31 AM
To: Tomcat Users List
Subject: Re: Commons fileUpload: write to disk permission problem
Hi Tim, and thanks for your answer. I did as you said and I made a servlet
that handles the users' avatars, but all I can get from the servlet is a
blank image. Here's
the bytes out of the blob from the DB.
Tim
-Original Message-
From: Andrea Salvi [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 4:48 AM
To: Tomcat Users List
Subject: Re: Commons fileUpload: write to disk permission problem
Hi David and thanks for the quick
Tim Lucia wrote:
Have the
servlet set the response type to image/jpeg or image/png or whatever is
appropriate, and then stream the bytes out of the blob from the DB.
Hm, that is something interesting what I need also.
As I quickly wrote down that code it should be:
byte[] mybytes=//