aspose file tools*
The moose likes Servlets and the fly likes Upload file into a Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Upload file into a Server" Watch "Upload file into a Server" New topic
Author

Upload file into a Server

Swaminathan Balasubramani
Ranch Hand

Joined: Apr 12, 2005
Posts: 38
hi,

Im developing a Knowledge Base as my PG MCA(Master of Computer Applications) final semester Project.

Actually, i want to know how to upload a file into a folder which is in the server..As im new to JAVA it would be very helpfull for me if someone help me with the code and logic.

pls help me! The final date for Project submission is very near.

Thanking you in advance
Swami


B.Swaminathan<br /> <br />Mobile:+91 09886510453
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Take a look at http://jakarta.apache.org/commons/fileupload


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Swaminathan Balasubramani
Ranch Hand

Joined: Apr 12, 2005
Posts: 38
Thanx ben,

The link feeded me with lot of information.


Can anyone provide me some sample code to upload a file into a indirectory in the Server. Since, what i'm developing is a Knowledge Base they deal with file of various type and size.Most of the files are huge in size.

Thanx in advance for the anticipated reply.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The documentation for commons fileupload has sample code.
Vishwas Hegde
Ranch Hand

Joined: Oct 02, 2003
Posts: 212
Hi...

You can search in oreilly website.... download the MultipartRequest package and that package takes care of everything. Mean to say that by using the classes present in that package, you can easily upload a file to a server. Even the sample code is available.

Regards
Vishwas
SCJP1.4
Swaminathan Balasubramani
Ranch Hand

Joined: Apr 12, 2005
Posts: 38
Hi

Can anyone help me reaching the link to download Oreilly's MultipartRequest.

Thanks in advance.
Richard Bradford
Ranch Hand

Joined: Apr 20, 2004
Posts: 48
Originally posted by Swaminathan Balasubramani:
Hi

Can anyone help me reaching the link to download Oreilly's MultipartRequest.

Thanks in advance.

Via the power of google:

http://servlets.com/cos/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload file into a Server