• Post Reply Bookmark Topic Watch Topic
  • New Topic

File upload

 
Rashmee H S
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to read .doc, pdf, gif and .jpg files from one location and upload to some other location in my system or some other system in the .

Can someone give me the sample java code how to do it.

Thanks in advance
Rashmee
[ June 13, 2008: Message edited by: Rashmee H S ]
 
Prakash Subramanian
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, your question is very general in nature. Uploading to some other location in your system would mean copying that file to the other location. The File I/O API's in Java would be the place you want to look for that. For uploading to some other system in the network, the ways are many. It depends on the protocols you want to use, could be FTP, HTTP, SMB etc. Quite a few JDK and third party libraries are available for this.

Try referring the JDK API's, Apache Commons (File-Upload for you), JCIFS etc. You can google for these terms and get the right hit. Also try the simpler case of copying to another location on your system first.

But since you posted it in this forum, try referring to http://commons.apache.org/fileupload/
[ June 11, 2008: Message edited by: Prakash Subramanian ]
 
Shashi Ranjan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use FileUploadBean for non commercial use. Just search for the UploadBean in the google and you will get the material.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!