This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Is the convertdoc tool in the path of your system?
What I mean to say is: When you start a dos-prompt and you type in convertdoc. Is the command known? If must be known to your webserver. So this means it should be in the path of the webserver (via the webserver startup batch-file or via the system path).
Joined: Sep 18, 2006
i need convertion of file one format to another format like pdf to doc doc to pdf so i got one result through one tool and it is working but is their any possible is their without tool or any winbatch script is their it will be working on web application
am waiting for your reply
Joined: Mar 05, 2002
I'm sorry. I can't quite understand your problem!
You are trying to do conversions from pdf to doc and vice-versa? Ok
And I know you are trying to do this in your servlet. Right!
So what's next?
When you have succesfully transformed your document to another format (so you generated a new file) you will have to write the generated document to the browser using the servlet outputstream. (So just read the generated file using File IO), set the correct content type of the servlet outputstream (on the response object call setContentType)and write the file to the client (once again using the response object but now use the getOutputStream method).