File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes uploading a file programmatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "uploading a file programmatically" Watch "uploading a file programmatically" New topic
Author

uploading a file programmatically

Gayatri Sinha
Ranch Hand

Joined: Feb 13, 2006
Posts: 34
Hi,

we need to upload a file to a website regularly. This website has a login, password and then a button to browse the file and a upload button to upload the file.

Have been doing this manually till now, is it possible have a program that could upload the file to the website?

Thanks,
- Gayatri
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39553
    
  27
You could use HttpUnit (on SourceForge) to navigate through the login, and then use Jakarta Commons HttpClient to do the file upload.


Ping & DNS - updated with new look and Ping home screen widget
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 133
Or, if the Web site has an FTP server running, use the Jakarta Commons FTP client class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: uploading a file programmatically
 
Similar Threads
Name of the submission jar
File upload using selenium (selenium-java-2.15.0.jar) not working
How to upload image to the server and store it into DB?
Submitting the design file
sending xml file from server to client dynamically.