aspose 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: 41884
    
  63
You could use HttpUnit (on SourceForge) to navigate through the login, and then use Jakarta Commons HttpClient to do the file upload.


Ping & DNS - my free Android networking tools app
Adam Richards
Ranch Hand

Joined: Nov 03, 2005
Posts: 135
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