Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload Servlet

 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic