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 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=// get

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
o: 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 servlet code:

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
ROTECTED] > 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 as you said and I made a servlet > that handles the users' avatars, but all I can get from the

Re: Commons fileUpload: write to disk permission problem

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

RE: Commons fileUpload: write to disk permission problem

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

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 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 S

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