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

Posted on 2001-07-25
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 100 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: 6722395

Expert Comment

ID: 7705997
Points awarded PAQd.

Community Support Moderator @Experts Exchange

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 80
eclipse package explorer vs project explorer view 2 84
java 8 lambda expresssions exception handling 3 75
eclipse java  build path 6 45
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now