This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I want to copy/move an Excel file from source location to Server location.
I supposed to do it manually by uploading the file using browse button in Server url.
Can we do it automatically using java code by eliminating this browse mechanism.
Please give me your valuable suggestions on this.
You could poll a known directory for the Excel files, and transfer them as they appear. There can be issues with synchronization though. For example, your process could see the Excel file and try to start transferring it before it has been fully created, or while its still being edited. One common trick is to write the file with a different name, like .myfile.xls, then rename it to myfile.xls when you're ready for it to transfer. Another trick is to keep a .lock file in the directory, and delete it when all the files in the directory are ready.
This question isn't specifically about I/O streams, so I'm going to move it over to general Java, where you'll probably get a lot more useful suggestions!