Go Premium for a chance to win a PS4. Enter to Win


How to transfer Word files from server side to cleint side.

Posted on 2001-07-25
Medium Priority
Last Modified: 2013-11-18
I have a word file on the server side. There is a servlet which sends the file to the server side. I first set the content type of the response to application\ms-word.
Then i copy the file contents in the response but still on the client instead of opening the Word Plugin in the browser or prompting the user for file save it prints junk characters.
WHat should i do ?
Question by:k_suchdeva

Accepted Solution

yongsing earned 400 total points
ID: 6320868
Try: response.setContentType("application/msword");

Expert Comment

ID: 6323973
See the response from yongsing.

In addition, the browser on the client should also be properly configured to open Word with the above mime type. If using Netscape, you can see this under Edit/preferences/Applications. This is generally the configuration. If it doesnt have this mime type mapped, it would prompt with the "open with/save" dialog.

Expert Comment

ID: 7705997
Points awarded PAQd.

Community Support Moderator @Experts Exchange

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question