Re: Commons fileUpload: write to disk permission problem

2006-06-27 Thread Andrea Salvi
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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread David Delbecq
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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
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

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
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

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
: 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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Mladen Adamovic
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=//