Re: Commons fileUpload: write to disk permission problem

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

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
TamperData, etc. for FireFox) 2. Check the Tomcat logs for a 40x or 50x error 3. Check the path in the .jsp tag 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 > T

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
234 is the primary key (ID) field of the avatar in the DB. 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. Tim > -Original Message- > From: Andrea Salvi [mailto:[EMAIL PROTECTED] &g

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
ECTED]>: 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 :) An

Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
Hi there! I'm making a forum application with JSP and Servlets, and I wanted to give to the final user the opportunity to upload an avatar to be displayed into his posts. I found the Commons fileUpload library and it works quite well, except for a thing: I can't save the image on the server's file