Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Client to server file upload " Watch "Client to server file upload " New topic
Author

Client to server file upload

Jigar Naik
Ranch Hand

Joined: Dec 12, 2006
Posts: 753
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

 
 
subject: Client to server file upload
 
Similar Threads
Problem in Mail Attachemnt using JSP
FileNotFound Exception
How to send email with no attachment?
JavaMail API error
sending attachment with mail