upload attachment from client?

I had writtern a servlet prog which send mail with

attachment of a file , it is looking the file form local

drive.If i access the servlet from another pc

while sending , it is looking the local path obviously i will get the file not found error.

how to solve this ?

guide me !

thanks

[350 byte] By [eltho1] at [2007-9-26 2:52:31]
# 1
You have to upload the file from the client side to the server first.
wilsontam at 2007-6-29 10:40:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I am having the same problem as well. When I try to upload a file to the server via a servlet, I seems I can upload the file object up there, but I just can not copy the file content across. Please help!Many thanks,Arthur
arthurkwok at 2007-6-29 10:40:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
hi wilsontam,I cannot upload file client to server , any other way to read the file from client and send as attachment in a fly.
eltho1 at 2007-6-29 10:40:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
I am also facing the same problem ..If U hacve got the solution then pleasse send me reply...i am having the code but it is working upto 4KB that is too small pleasse send me the reply soon....wAITING FOR U R REPLY.
bimalmehta at 2007-6-29 10:40:39 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...