my dog learned polymorphism
The moose likes Other JSE/JEE APIs and the fly likes Client to server file upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Client to server file upload " Watch "Client to server file upload " New topic

Client to server file upload

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 761
hi i am using java mail to send a file.

I want to send a file as an attachment using java mail.

and bellow is the code which create file data source, And file data source takes a string path, so how do i upload file from client. if the client specifies the path. bellow code looks for file on the server.

Jigar Naik

Vinoth Thirunavukarasu
Ranch Hand

Joined: Dec 18, 2008
Posts: 164

Hi Friend,
I think this link will help you

web page
[ December 24, 2008: Message edited by: vinoth thirunavukarasu ]

Java Best Practices
Linux Best Practices
Amortization Calculator

I agree. Here's the link:
subject: Client to server file upload
It's not a secret anymore!