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,
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
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:
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
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
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
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
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
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