File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with reading submitted document

 
Peter Miklosko
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received.


To test this I use curl utility to pass file to url as


However content of the file is not printed, only new line is added which means process riches sb.append(line + "\n"); command.

Any advice is welcome.
 
Peter Miklosko
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Little late in the day , but here is answer.
Curl execution command was wrong
Window version with double quotes

Unix version with single quotes


And in case you interested in forwarding file to doPut() of your servlet use
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic