File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Upload Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Upload Servlet" Watch "Upload Servlet" New topic
Author

Upload Servlet

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
I tried to use orielly's classes, but for what I am doing I cannot or at least dotn know how to. I have a server (Unix) that runs a servlet that uploads a file. I can do that with no problem. But I want to bea able to upload that file and have the servlet change it. (Add lines to it, etc..) I am not sure how to do this. Any thoughts?
Aaron Dressin
Greenhorn

Joined: May 10, 2002
Posts: 29
Using the oreilly classes you can specify a temp directory and store the contents of the file as a object. You can then open the file and modify as you see fit.
Or... you could use the MulitpartParser class to read the contents directly into an input stream or reader and modify it there.


-Aaron
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Upload Servlet
 
Similar Threads
How to upload a file using a servlet?
File Upload
How can I upload a file(*.doc,*.zip...) within a servlet?
How do I FTP files form my html form using "input type=file" through jsp/servlet
how to Transfer file from client browser to server?