Solved

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

Posted on 2001-07-25
4
179 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

809 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