Solved

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

Posted on 2001-07-25
4
182 Views
Last Modified: 2013-11-18
Hi ALL
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 ?
Khem
0
Comment
Question by:k_suchdeva
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 9

Accepted Solution

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

Expert Comment

by:binoysamuel
ID: 6323973
See the response from yongsing.
   response.setContentType("application/msword");  

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.
0
 
LVL 5

Expert Comment

by:Netminder
ID: 6722395
0
 

Expert Comment

by:SpideyMod
ID: 7705997
Points awarded PAQd.

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

734 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